module documentation
BLE UART Chat - Send and receive messages over BLE UART service
| Function | bluetooth |
Handle Bluetooth connection and scan events. |
| Function | on |
Store an incoming chat message. |
| Function | run |
Run the app and handle chat state input. |
| Function | start |
Start the UART Chat app and show the mode menu. |
| Function | stop |
Stop the app and clean up the BLE connection. |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Constant | STATE |
Undocumented |
| Function | __addr |
Convert address bytes to a colon-separated string. |
| Variable | _addresses |
Undocumented |
| Variable | _bluetooth |
Undocumented |
| Variable | _last |
Undocumented |
| Variable | _loading |
Undocumented |
| Variable | _menu |
Undocumented |
| Variable | _messages |
Undocumented |
| Variable | _mode |
Undocumented |
| Variable | _scanned |
Undocumented |
| Variable | _selected |
Undocumented |
Handle Bluetooth connection and scan events.
| Parameters | |
event:int | Bluetooth event code. |
data:tuple | Event payload. |
Run the app and handle chat state input.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |
Start the UART Chat app and show the mode menu.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |
| Returns | |
bool | True if the app started, False on failure. |
Stop the app and clean up the BLE connection.
| Parameters | |
viewViewManager | The view manager instance for display and storage access. |