module documentation
BLE Advertise - Broadcast as a peripheral and accept connections
| Function | bluetooth |
Handle Bluetooth connection and disconnection events. |
| Function | on |
Store data received from the connected central. |
| Function | run |
Run the app and update the display. |
| Function | start |
Start the app and advertise this device for connections. |
| Function | stop |
Stop the app and clean up the BLE connection. |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Variable | _advertising |
Undocumented |
| Variable | _bluetooth |
Undocumented |
| Variable | _connections |
Undocumented |
| Variable | _last |
Undocumented |
| Variable | _received |
Undocumented |
Handle Bluetooth connection and disconnection events.
| Parameters | |
event:int | Bluetooth event code. |
data:tuple | Event payload with connection handle and address. |
Run the app and update the display.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |
Start the app and advertise this device for connections.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |
| Returns | |
bool | True if advertising started, False on failure. |
Stop the app and clean up the BLE connection.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |