Wirepas SDK
|
Go to the source code of this file.
Functions | |
shared_beacon_res_e | Shared_Beacon_init (void) |
Initialize the Shared_Beacon library. More... | |
shared_beacon_res_e | Shared_Beacon_startBeacon (uint16_t interval_ms, int8_t *power, app_lib_beacon_tx_channels_mask_e channels_mask, const uint8_t *content, uint8_t length, uint8_t *shared_beacon_index) |
Starts sending of beacon content defined in the parameters. There is possibility to start multiple beacons after another beacons started. The limitation is that there cannot be set individual beacon sending interval for each beacons. The smallest interval defined for beacons is selected as common interval for all beacons. More... | |
shared_beacon_res_e | Shared_Beacon_stopBeacon (uint8_t shared_beacon_index) |
Stops beacon with the given index. Shared beacon used interval is checked and selected smaller interval from active beacons after shared_beacon_index is set as not active. More... | |
Enumerations | |
enum | shared_beacon_res_e { SHARED_BEACON_RES_OK = 0, SHARED_BEACON_INIT_NOT_DONE = 1, SHARED_BEACON_INDEX_NOT_AVAILABLE = 2, SHARED_BEACON_INDEX_NOT_ACTIVE = 3, SHARED_BEACON_INVALID_PARAM = 4 } |
List of return code. More... | |
shared_beacon_res_e Shared_Beacon_init | ( | void | ) |
Initialize the Shared_Beacon library.
shared_beacon_res_e Shared_Beacon_startBeacon | ( | uint16_t | interval_ms, |
int8_t * | power, | ||
app_lib_beacon_tx_channels_mask_e | channels_mask, | ||
const uint8_t * | content, | ||
uint8_t | length, | ||
uint8_t * | shared_beacon_index | ||
) |
Starts sending of beacon content defined in the parameters. There is possibility to start multiple beacons after another beacons started. The limitation is that there cannot be set individual beacon sending interval for each beacons. The smallest interval defined for beacons is selected as common interval for all beacons.
interval_ms | beacon sending interval in ms |
power | rf power level in dBm |
channel_mask | channels to be used for defined beacon |
content | data to be sent out |
length | length of content to be sent out |
shared_beacon_index | returns index which is used when Shared_Beacon_stopBeacon used, used indexes: (0 .. APP_LIB_BEACONTX_MAX_INDEX) |
shared_beacon_res_e Shared_Beacon_stopBeacon | ( | uint8_t | shared_beacon_index | ) |
Stops beacon with the given index. Shared beacon used interval is checked and selected smaller interval from active beacons after shared_beacon_index is set as not active.
shared_beacon_index | The index received in Shared_Beacon_startBeacon |
enum shared_beacon_res_e |
List of return code.
Definition at line 15 of file shared_beacon.h.