Wirepas SDK
poslib_mbcn.h
Go to the documentation of this file.
1
7#ifndef _POSLIB_MBCN_H_
8#define _POSLIB_MBCN_H_
9
10#include "poslib.h"
11#define PACKED_STRUCT struct __attribute__((__packed__))
12
17{
18 uint16_t seq;
19 uint8_t data[102 - sizeof(uint16_t)]; //FixME: replace 102 with define if exists!
21
28
34
35
43bool PosLibMbcn_decode(uint8_t * buf, uint8_t length, poslib_mbcn_data_t * mbcn);
44
45#endif /* _POSLIB_MBCN_H_ */
defines mini-beacon configuration.
Definition poslib.h:213
defines mini-beacon data payload.
Definition poslib.h:224
bool PosLibMbcn_start(poslib_mbcn_config_t *)
Starts sending periodic mini-beacons.
bool PosLibMbcn_decode(uint8_t *buf, uint8_t length, poslib_mbcn_data_t *mbcn)
Decodes the mini-beacon payload.
void PosLibMbcn_stop()
Stops periodic mini-beacons.
#define PACKED_STRUCT
Definition poslib_mbcn.h:11
Mini-beacon payload struct.
Definition poslib_mbcn.h:17