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