BSB Developer Docs
Loading...
Searching...
No Matches
ble_streaming.h File Reference

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.
 

Detailed Description

API for streaming device state and screen over ble.

Streams data provided by state publisher to HM10 Uart characteristics

Function Documentation

◆ ble_streaming_alloc()

BleStreaming * ble_streaming_alloc ( Ble * ble)

Allocates streaming instance for future use.

Parameters
[in]blePointer to Ble service.
Returns
pointer to streaming instance.

◆ ble_streaming_free()

void ble_streaming_free ( BleStreaming * instance)

Deletes streaming instance and free all internals.

Parameters
[in]instancePointer to streaming instance.

◆ ble_streaming_update()

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.

Parameters
[in]instancePointer to streaming instance.
[in]statusCurrent status of Ble service