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

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.
 

Detailed Description

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.

Function Documentation

◆ ble_http_repeater_start()

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.

Parameters
[in]blepointer to the ble instance

◆ ble_http_repeater_stop()

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.