Wirepas SDK
|
Header file for the poslib mini-beacon module. More...
Header file for the poslib mini-beacon module.
Definition in file poslib_mbcn.h.
Go to the source code of this file.
Functions | |
bool | PosLibMbcn_start (poslib_mbcn_config_t *) |
Starts sending periodic mini-beacons. More... | |
void | PosLibMbcn_stop () |
Stops periodic mini-beacons. More... | |
bool | PosLibMbcn_decode (uint8_t *buf, uint8_t length, poslib_mbcn_data_t *mbcn) |
Decodes the mini-beacon payload. More... | |
Data Structures | |
struct | poslib_mbcn_payload_t |
Mini-beacon payload struct. More... | |
Macros | |
#define | PACKED_STRUCT struct __attribute__((__packed__)) |
bool PosLibMbcn_decode | ( | uint8_t * | buf, |
uint8_t | length, | ||
poslib_mbcn_data_t * | mbcn | ||
) |
Decodes the mini-beacon payload.
[in] | buf | Pointer to the received payload. |
[in] | length | length of the received payload buffer |
[out] | mbcn | pointer to a poslib_mbcn_data_t structure where decoded data will be stored |
bool PosLibMbcn_start | ( | poslib_mbcn_config_t * | ) |
Starts sending periodic mini-beacons.
mbcn | Pointer to poslib_mbcn_config_t structure with configuration. |
void PosLibMbcn_stop | ( | ) |
Stops periodic mini-beacons.
struct poslib_mbcn_payload_t |
Mini-beacon payload struct.
Definition at line 16 of file poslib_mbcn.h.
Data Fields | ||
---|---|---|
uint8_t | data[102 - sizeof(uint16_t)] | |
uint16_t | seq |
#define PACKED_STRUCT struct __attribute__((__packed__)) |
Definition at line 11 of file poslib_mbcn.h.