Nordic Semiconductor nRF5 AirFuel SDK
version 2.2.0
|
#include "advertiser_beacon.h"
#include <stdio.h>
#include <string.h>
#include "nrf_soc.h"
#include "app_error.h"
#include "app_util.h"
Go to the source code of this file.
Macros | |
#define | APP_DEVICE_TYPE 0x02 |
Static functions and variables | |
struct { | |
ble_beacon_init_t init_vals | |
ble_gap_adv_params_t adv_params | |
} | m_beacon |
Struct containing all variables of this module. | |
static uint8_t * | m_get_adv_data (uint8_t *data_length) |
Initialize adv packet. | |
void | app_beacon_init (ble_beacon_init_t *p_init) |
Function for initializing the advertiser module. More... | |
void | app_beacon_start (void) |
Function for starting the advertisement. More... | |
void | app_beacon_stop (void) |
Function for stopping the advertisement. More... | |
#define APP_DEVICE_TYPE 0x02 |
0x02 refers to Beacon
Definition at line 23 of file advertiser_beacon.c.
void app_beacon_init | ( | ble_beacon_init_t * | p_init | ) |
Function for initializing the advertiser module.
[in] | p_init | structure containing advertiser configuration information. |
Definition at line 71 of file advertiser_beacon.c.
void app_beacon_start | ( | void | ) |
Function for starting the advertisement.
Definition at line 85 of file advertiser_beacon.c.
void app_beacon_stop | ( | void | ) |
Function for stopping the advertisement.
Definition at line 92 of file advertiser_beacon.c.