bundle.website.sites.thebundle.pages.ble.page¶
BLE dashboard routes and websocket scan streaming.
Attributes¶
Functions¶
|
Render the BLE dashboard page. |
|
Run a single BLE scan and return devices as JSON. |
|
Continuously scan BLE devices and stream updates to the browser. |
Module Contents¶
- bundle.website.sites.thebundle.pages.ble.page.page¶
- bundle.website.sites.thebundle.pages.ble.page.REFRESH_INTERVAL_MIN = 1.0¶
- bundle.website.sites.thebundle.pages.ble.page.REFRESH_INTERVAL_MAX = 30.0¶
- async bundle.website.sites.thebundle.pages.ble.page.ble_dashboard(request: fastapi.Request)¶
Render the BLE dashboard page.
- async bundle.website.sites.thebundle.pages.ble.page.ble_scan(timeout: float = ble.DEFAULT_SCAN_TIMEOUT) dict¶
Run a single BLE scan and return devices as JSON.
- async bundle.website.sites.thebundle.pages.ble.page.ble_scan_stream(websocket: fastapi.WebSocket)¶
Continuously scan BLE devices and stream updates to the browser.