Wirepas SDK
wms_beacon_rx.h
Go to the documentation of this file.
1/* Copyright 2018 Wirepas Ltd. All Rights Reserved.
2 *
3 * See file LICENSE.txt for full license details.
4 *
5 */
6
15#ifndef APP_LIB_BEACON_RX_H_
16#define APP_LIB_BEACON_RX_H_
17
18#include <stdlib.h>
19#include <stdint.h>
20#include <stdbool.h>
21
22#include "wms_app.h"
23
25#define APP_LIB_BEACON_RX_NAME 0x0cb93068
26
28#define APP_LIB_BEACON_RX_VERSION 0x200
29
48
53typedef struct
54{
56 uint8_t type;
58 uint8_t length;
60 int8_t rssi;
62 uint8_t * payload;
64
73 (const app_lib_beacon_rx_received_t * packet);
74
105typedef void
107
127
134 (*app_lib_beacon_rx_stop)(void);
135
182typedef bool
184
185
196
197#endif /* APP_LIB_BEACON_RX_H_ */
app_res_e
Definition wms_app.h:202
app_lib_beacon_rx_stop stopScanner
void(* app_lib_beacon_rx_data_received_cb_f)(const app_lib_beacon_rx_received_t *packet)
Function type for BLE Advertisement packet received callback.
app_lib_beacon_rx_start startScanner
app_lib_beacon_rx_set_data_received_cb_f setBeaconReceivedCb
void(* app_lib_beacon_rx_set_data_received_cb_f)(app_lib_beacon_rx_data_received_cb_f cb)
Set a callback to be called when data packet received.
app_lib_beacon_rx_started isScannerStarted
bool(* app_lib_beacon_rx_started)(void)
Check if BLE advertisement scanner is running.
app_lib_beacon_rx_channels_mask_e
BLE Advertising channels to listen, used with lib_beacon_rx->startScanner() service.
@ APP_LIB_BEACON_RX_CHANNEL_39
@ APP_LIB_BEACON_RX_CHANNEL_38
@ APP_LIB_BEACON_RX_CHANNEL_ALL
@ APP_LIB_BEACON_RX_CHANNEL_37
app_res_e(* app_lib_beacon_rx_start)(app_lib_beacon_rx_channels_mask_e channel)
Start BLE advertisement scanner.
app_res_e(* app_lib_beacon_rx_stop)(void)
Stop BLE advertisement scanner.
BLE structure received from network. Used in callback function set with lib_beacon_rx->setBeaconRecei...
List of library functions.