Contiki-NG
|
Basic BLE functions. More...
#include <stdbool.h>
#include <stdint.h>
#include "boards.h"
#include "nordic_common.h"
#include "nrf_delay.h"
#include "nrf_sdm.h"
#include "ble_advdata.h"
#include "ble_srv_common.h"
#include "ble_ipsp.h"
#include "softdevice_handler.h"
#include "app_error.h"
#include "iot_defines.h"
#include "ble-core.h"
Go to the source code of this file.
Macros | |
#define | APP_ADV_TIMEOUT 0 |
Time for which the device must be advertising in non-connectable mode (in seconds). More... | |
#define | APP_ADV_ADV_INTERVAL MSEC_TO_UNITS(333, UNIT_0_625_MS) |
The advertising interval. More... | |
Functions | |
static void | ble_evt_dispatch (ble_evt_t *p_ble_evt) |
SoftDevice BLE event callback. More... | |
void | ble_stack_init (void) |
Initialize and enable the BLE stack. | |
void | ble_get_mac (uint8_t addr[8]) |
Return device EUI64 MAC address. More... | |
void | ble_advertising_init (const char *name) |
Initialize BLE advertising data. More... | |
void | ble_advertising_start (void) |
Start BLE advertising. | |
void | ble_gap_addr_print (const ble_gap_addr_t *addr) |
Print GAP address. More... | |
static void | on_ble_evt (ble_evt_t *p_ble_evt) |
Function for handling the Application's BLE Stack events. More... | |
Variables | |
static ble_gap_adv_params_t | m_adv_params |
Parameters to be passed to the stack when starting advertising. More... | |
Basic BLE functions.
Definition in file ble-core.c.