bundle.website.sites.thebundle.pages.ble.page

BLE dashboard routes and websocket scan streaming.

Attributes

Functions

ble_dashboard(request)

Render the BLE dashboard page.

ble_scan(→ dict)

Run a single BLE scan and return devices as JSON.

ble_scan_stream(websocket)

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.