Nordic Semiconductor nRF5 AirFuel SDK  version 2.2.0
advertiser_beacon.h
Go to the documentation of this file.
1 /* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
2  *
3  * The information contained herein is property of Nordic Semiconductor ASA.
4  * Terms and conditions of usage are described in detail in NORDIC
5  * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6  *
7  * Licensees are granted free, non-transferable use of the information. NO
8  * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9  * the file.
10  *
11  */
12 
23 #ifndef ADVERTISER_BEACON_H__
24 #define ADVERTISER_BEACON_H__
25 
26 #include <stdint.h>
27 #include <stdbool.h>
28 #include "ble_types.h"
29 #include "ble_gap.h"
30 #include "ble_srv_common.h"
31 
32 
34 typedef struct
35 {
36  ble_uuid128_t uuid;
37  uint32_t adv_interval;
38  uint16_t major;
39  uint16_t minor;
40  uint16_t manuf_id;
41  uint8_t rssi;
42  ble_gap_addr_t beacon_addr;
44 
49 void app_beacon_init(ble_beacon_init_t * p_init);
50 
54 void app_beacon_start(void);
55 
60 void app_beacon_stop(void);
61 
62 #endif // ADVERTISER_BEACON_H__
63 
uint16_t major
Major identifier to use for 'beacon'.
void app_beacon_start(void)
Function for starting the advertisement.
uint16_t manuf_id
Manufacturer ID.
ble_gap_addr_t beacon_addr
BLEe address to be used by the beacon.
void app_beacon_init(ble_beacon_init_t *p_init)
Function for initializing the advertiser module.
uint8_t rssi
Measured RSSI at 1 meter distance in dBm.
uint32_t adv_interval
Advertising interval in milliseconds to be used for 'beacon' advertisements.
void app_beacon_stop(void)
Function for stopping the advertisement.
BLE beacon init type.
ble_uuid128_t uuid
128 bit proprietary service UUID to include in advertisement packets
uint16_t minor
Minor identifier to use for 'beacon'.