|
Wirepas SDK
|
|
Go to the documentation of this file.
7 #ifndef _POSLIB_MEASUREMENT_H_
8 #define _POSLIB_MEASUREMENT_H_
35 #define MAX_PAYLOAD 102
38 #define MAX_BEACONS 14
40 #define NODE_ADDRESS_LENGTH 4
41 #define DEFAULT_MEASUREMENT_TYPE_TAG POSLIB_MEAS_RSS_SR_4BYTE_ADDR
42 #define DEFAULT_MEASUREMENT_TYPE_ANCHOR POSLIB_MEAS_RSS_SR_ANCHOR_4BYTE_ADDR
46 #define PACKED_STRUCT struct __attribute__((__packed__))
87 #define POSLIB_NODE_INFO_FEATURES_VERSION 1
131 } poslib_scan_ctrl_t;
157 uint8_t * bytes_len, uint8_t * num_meas);
@ POSLIB_NODE_INFO_FLAG_EDDYSTONE_ON
poslib_node_info_features_e
Node active features (.
@ POSLIB_MEAS_RSS_SR_ANCHOR
@ POSLIB_NODE_INFO_FLAG_IBEACON_ON
@ POSLIB_NODE_INFO_FLAG_MOTION_EN
uint8_t PosLibMeas_getBeaconNum(void)
Get the number of beacons available.
Voltage record (header + payload)
@ POSLIB_NODE_INFO_FLAG_MBCN_ON
void PosLibMeas_clearMeas(void)
Clears measurement table.
bool PosLibMeas_startScan(poslib_scan_ctrl_t *scan_ctrl)
Starts new scan.
@ POSLIB_NODE_INFO_FLAG_IS_STATIC
poslib_measurements_e
defines the device's positioning mode. The type is matched against the WPE proto definition.
@ POSLIB_MEAS_RSS_SR_4BYTE_ADDR
@ POSLIB_MEAS_RSS_SR_ANCHOR_4BYTE_ADDR
bool PosLibMeas_opportunisticScan(bool enable)
@ POSLIB_NODE_INFO_MASK_VERSION
void PosLibMeas_stop(void)
Stops the measurement module. Callbacks are removed.
bool PosLibMeas_getPayload(uint8_t *bytes, uint8_t max_len, uint8_t sequence, poslib_measurements_e meas_type, bool add_voltage, poslib_meas_record_node_info_t *node_info, uint8_t *bytes_len, uint8_t *num_meas)
poslib_meas_record_header_t header