![]() |
BSB Developer Docs
|
API for streaming device state and screen over ble. More...
#include "../ble.h"Go to the source code of this file.
Typedefs | |
| typedef struct BleStreaming | BleStreaming |
| Opaque BleStreaming type declaration. | |
Functions | |
| BleStreaming * | ble_streaming_alloc (Ble *ble) |
| Allocates streaming instance for future use. | |
| void | ble_streaming_free (BleStreaming *instance) |
| Deletes streaming instance and free all internals. | |
| void | ble_streaming_update (BleStreaming *instance, const BleServiceStatus status) |
| Update streaming instance state according to current Ble status. | |
API for streaming device state and screen over ble.
Streams data provided by state publisher to HM10 Uart characteristics
| BleStreaming * ble_streaming_alloc | ( | Ble * | ble | ) |
Allocates streaming instance for future use.
| [in] | ble | Pointer to Ble service. |
| void ble_streaming_free | ( | BleStreaming * | instance | ) |
Deletes streaming instance and free all internals.
| [in] | instance | Pointer to streaming instance. |
| void ble_streaming_update | ( | BleStreaming * | instance, |
| const BleServiceStatus | status ) |
Update streaming instance state according to current Ble status.
Streaming will start if status equals BleServiceStatusConnected, in other cases it will be stopped.
| [in] | instance | Pointer to streaming instance. |
| [in] | status | Current status of Ble service |