-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚗️ #1 sending data to the browser, failing
- Loading branch information
1 parent
99b66fa
commit 468f7d4
Showing
7 changed files
with
180 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +0,0 @@ | ||
{ | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.autopep8" | ||
}, | ||
"python.formatting.provider": "none" | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
# This file is from the branch `experiments` as `fastapi_as_api_in_class.py` | ||
from fastapi import FastAPI, APIRouter | ||
from communication import ESP32Manager, WebManager | ||
from communication import ESP32Manager, WebManager, ConnectionManager | ||
import uvicorn | ||
app = FastAPI() | ||
esp32 = ESP32Manager(esp32IP='192.168.134.165') | ||
esp32_mngr = ESP32Manager(esp32IP='192.168.182.165') | ||
conn_mngr = ConnectionManager() | ||
web = WebManager() | ||
|
||
app.include_router(esp32.router) | ||
|
||
app.include_router(esp32_mngr.router) | ||
app.include_router(web.router) | ||
|
||
|
||
# if __name__ == "__main__": | ||
# uvicorn.run(app, host="127.0.0.2", port=8500) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ def autonomous_mode(): | |
|
||
|
||
if __name__ == '__main__': | ||
app.run() | ||
app.run(host='127.0.0.2', port=5000, debug=True) |
Oops, something went wrong.