10#if (APP_LIB_STATE_VERSION > 0x205)
18#define POS_DESTINATION_ENDPOINT 238
19#define POS_SOURCE_ENDPOINT 238
24#define POSLIB_MIN_MEAS_RATE_S 8
25#define POSLIB_MAX_MEAS_RATE_S 86400
30#define POSLIB_VOLTAGE_SAMPLING_MAX_S 60
31#define POSLIB_VOLTAGE_FILTER_SAMPLES 30
116#define POSLIB_FLAG_EVENT_SUBSCRIBERS_MAX 8
184#define POSLIB_MBCN_RECORD_MAX_SIZE 16
187#define POSLIB_MBCN_RECORDS 8
189#define POSLIB_MBCN_SRC_EP 238
190#define POSLIB_MBCN_DEST_EP 238
app_lib_time_timestamp_hp_t time_hp
app_lib_data_send_res_e PosLib_sendData(app_lib_data_to_send_t *data, app_lib_data_data_sent_cb_f sent_cb)
Send data. The packet to send is represented as a app_lib_data_to_send_t struct. In node has Advertis...
poslib_ble_type_e
Beacon devices types.
poslib_ble_mode_config_t eddystone
#define POSLIB_MBCN_RECORDS
ble_beacon_settings_t ble
poslib_ret_e PosLib_startPeriodic(void)
Start the positioning updates according to provided configuration. Calls PosLib initialization functi...
poslib_mbcn_tx_interval_e
@ POSLIB_MBCN_TX_INTERVAL_250
@ POSLIB_MBCN_TX_INTERVAL_DEFAULT
@ POSLIB_MBCN_TX_INTERVAL_500
uint16_t led_on_duration_s
uint16_t activation_delay_s
uint32_t nrls_sleep_time_sec
poslib_events_e
Defines the events triggered by PosLib.
@ POSLIB_FLAG_EVENT_CONFIG_CHANGE
@ POSLIB_FLAG_EVENT_LED_OFF
@ POSLIB_FLAG_EVENT_OFLINE
@ POSLIB_FLAG_EVENT_UPDATE_END
@ POSLIB_FLAG_EVENT_BLE_STOP
@ POSLIB_FLAG_EVENT_BLE_START
@ POSLIB_FLAG_EVENT_ONLINE
@ POSLIB_FLAG_EVENT_UPDATE_START
@ POSLIB_FLAG_EVENT_LED_ON
poslib_class_e node_class
poslib_ret_e
Return codes of positioning functions.
@ POS_RET_EVENT_REG_ERROR
@ POS_RET_MOTION_NOT_ENABLED
poslib_motion_mode_e
defines the position motion mode.
poslib_class_e
defines the device's operational class.
@ POSLIB_CLASS_NODE_SPECIFIC
poslib_motion_mon_settings_t motion
poslib_status_e PosLib_status(void)
Returns the current status of PosLib.
poslib_ret_e PosLib_startOneshot(void)
Triggers one position update. If PosLib is started the scheduled operation will continue after the on...
poslib_mbcn_record_types_e
defines the mini-beacon payload records types
@ POSLIB_MBCN_TX_INTERVAL
@ POSLIB_MBCN_INVALID_TYPE
void(* poslib_events_listen_info_f)(POSLIB_FLAG_EVENT_info_t *msg)
Function used with POSLIB_FLAG_EVENT_setCb.
app_lib_beacon_tx_channels_mask_e channels
poslib_mode_e
defines the device's positioning mode.
@ POSLIB_MODE_OPPORTUNISTIC_ANCHOR
@ POSLIB_MODE_AUTOSCAN_ANCHOR
@ POSLIB_MODE_AUTOSCAN_TAG
bool PosLib_decodeMbcn(uint8_t *buf, uint8_t length, poslib_mbcn_data_t *mbcn)
Decodes the mini-beacon payload.
uint32_t update_period_dynamic_s
void(* poslib_events_callback_f)(poslib_events_listen_info_f callback)
This callback is used to receive Poslib generated events.
poslib_ret_e PosLib_motion(poslib_motion_mode_e mode)
Used to indicate that the tag is static or dynamic. The update rate used will be adjusted according t...
#define POSLIB_MBCN_RECORD_MAX_SIZE
poslib_ret_e PosLib_stopPeriodic(void)
Stops the positioning updates.
poslib_ble_mode_e
defines the state (started/stopped) of the BLE beacon sent by PosLib
@ POSLIB_BLE_ON_WHEN_OFFLINE
poslib_ret_e PosLib_eventRegister(poslib_events_e event, poslib_events_listen_info_f cb, uint8_t *id)
Register an event subscriber.
poslib_ret_e PosLib_getConfig(poslib_settings_t *settings)
Gets PosLib configuration.
void PosLib_eventDeregister(uint8_t id)
De-register the event subscriber with the provided id.
poslib_ble_mode_config_t ibeacon
poslib_ret_e PosLib_setConfig(poslib_settings_t *settings)
Sets PosLib configuration.
uint32_t update_period_static_s
uint32_t update_period_offline_s
poslib_status_e
defines status returned in PosLib_status().
poslib_mbcn_config_t mbcn
position library settings.
positioning library auxiliary settings
defines BLE mode mode configuration.
defines mini-beacon configuration.
defines mini-beacon record.
defines mini-beacon data payload.
position library ble settings.
position library DA settings.
position library motion settings.
app_lib_beacon_tx_channels_mask_e
app_lib_data_send_res_e
A result code returned from lib_data->sendData().
void(* app_lib_data_data_sent_cb_f)(const app_lib_data_sent_status_t *status)
Sent packet tracking callback.
A struct for lib_data->sendData().
uint32_t app_lib_time_timestamp_hp_t
Highest-precision timestamp type available on the platform.