Wirepas SDK
shared_beacon.h
Go to the documentation of this file.
1 /* Copyright 2020 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
7 #ifndef _SHARED_BEACON_H_
8 #define _SHARED_BEACON_H_
9 
10 #include "api.h"
11 
15 typedef enum
16 {
28 
36 
59  int8_t * power,
61  channels_mask,
62  const uint8_t * content,
63  uint8_t length,
64  uint8_t * shared_beacon_index);
65 
74 shared_beacon_res_e Shared_Beacon_stopBeacon(uint8_t shared_beacon_index);
75 
76 #endif //_SHARED_BEACON_H_
Shared_Beacon_startBeacon
shared_beacon_res_e Shared_Beacon_startBeacon(uint16_t interval_ms, int8_t *power, app_lib_beacon_tx_channels_mask_e channels_mask, const uint8_t *content, uint8_t length, uint8_t *shared_beacon_index)
Starts sending of beacon content defined in the parameters. There is possibility to start multiple be...
SHARED_BEACON_INDEX_NOT_ACTIVE
@ SHARED_BEACON_INDEX_NOT_ACTIVE
Definition: shared_beacon.h:24
SHARED_BEACON_INIT_NOT_DONE
@ SHARED_BEACON_INIT_NOT_DONE
Definition: shared_beacon.h:20
Shared_Beacon_init
shared_beacon_res_e Shared_Beacon_init(void)
Initialize the Shared_Beacon library.
shared_beacon_res_e
shared_beacon_res_e
List of return code.
Definition: shared_beacon.h:15
Shared_Beacon_stopBeacon
shared_beacon_res_e Shared_Beacon_stopBeacon(uint8_t shared_beacon_index)
Stops beacon with the given index. Shared beacon used interval is checked and selected smaller interv...
SHARED_BEACON_INDEX_NOT_AVAILABLE
@ SHARED_BEACON_INDEX_NOT_AVAILABLE
Definition: shared_beacon.h:22
app_lib_beacon_tx_channels_mask_e
app_lib_beacon_tx_channels_mask_e
Definition: wms_beacon_tx.h:92
SHARED_BEACON_RES_OK
@ SHARED_BEACON_RES_OK
Definition: shared_beacon.h:18
api.h
SHARED_BEACON_INVALID_PARAM
@ SHARED_BEACON_INVALID_PARAM
Definition: shared_beacon.h:26