![]() |
BSB Developer Docs
|
API for controlling http over ble transmission. More...
#include "../ble.h"Go to the source code of this file.
Functions | |
| void | ble_http_repeater_init (void) |
| Inits repeater, called once during service startup. | |
| void | ble_http_repeater_start (Ble *ble) |
| Start repeater. | |
| void | ble_http_repeater_stop (void) |
| Stop repeater. | |
API for controlling http over ble transmission.
Performs data exchange between Nordic Uart characteristics from ble service and web server. Runs in a separate thread which starts on enabling ble. This thread stops on disabling ble.
| void ble_http_repeater_start | ( | Ble * | ble | ) |
Start repeater.
Spawns repeater thread, which opens connection to web server over loopback. Called when ble_start is called.
| [in] | ble | pointer to the ble instance |
| void ble_http_repeater_stop | ( | void | ) |
Stop repeater.
Stops repeater thread, blocks until repeater is actually stopped and loopback connection is closed. Called when BleCommandDisable is performed.