ruuvi.drivers.c
${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
|
Go to the source code of this file.
Data Structures | |
struct | rt_adv_init_t |
Initial configuration for advertisement. PHY will be transferred to GATT. More... | |
Macros | |
#define | SCAN_RSP_NAME_MAX_LEN (11U) |
Longer name gets truncated when advertised with UUID. More... | |
#define | RT_ADV_SCAN_WINDOW_MS (7000U) |
Window of one scan per channel. Scan takes this * num_channels time. More... | |
#define | RT_ADV_SCAN_INTERVAL_MS (7000U) |
Functions | |
rd_status_t | rt_adv_init (rt_adv_init_t *const adv_init_settings) |
Initializes data advertising. More... | |
rd_status_t | rt_adv_uninit (void) |
Uninitializes data advertising. More... | |
rd_status_t | rt_adv_stop (void) |
Stops advertising. This is relevant only if the message was on repeat. More... | |
rd_status_t | rt_adv_send_data (ri_comm_message_t *const msg) |
Send given message as a BLE advertisement. More... | |
rd_status_t | rt_adv_connectability_set (const bool enable, const char *const device_name) |
Start advertising BLE GATT connection. More... | |
bool | rt_adv_is_init (void) |
check if advertisement is initialized More... | |
rd_status_t | rt_adv_scan_start (const ri_comm_evt_handler_fp_t on_evt) |
Start scanning BLE advertisements. More... | |
rd_status_t | rt_adv_scan_stop (void) |
Abort scanning. More... | |
Advertise data and GATT connection if available.
Typical usage:
Definition in file ruuvi_task_advertisement.h.