Go to the documentation of this file.
28 #ifndef NIMBLE_AUTOADV_H
29 #define NIMBLE_AUTOADV_H
31 #include "host/ble_gap.h"
42 #ifndef NIMBLE_AUTOADV_DEVICE_NAME
43 #define NIMBLE_AUTOADV_DEVICE_NAME NULL
55 #ifndef NIMBLE_AUTOADV_START_MANUALLY
56 #define NIMBLE_AUTOADV_START_MANUALLY 0
int nimble_autoadv_add_field(uint8_t type, const void *data, size_t data_len)
Add a new field to the given advertising data.
void nimble_autoadv_set_ble_gap_adv_params(struct ble_gap_adv_params *params)
Set struct for additional arguments specifying the particulars of the advertising procedure.
void nimble_autoadv_reset(void)
Reset all data regarding the advertising process.
void nimble_auto_adv_set_adv_duration(int32_t duration_ms)
Set the duration for the advertising procedure.
void nimble_autoadv_init(void)
Initialize autoadv module.
void nimble_autoadv_start(void)
Start the automated advertising procedure.
void nimble_auto_adv_set_gap_cb(ble_gap_event_fn *cb, void *cb_arg)
Set the callback for gap events.
void nimble_autoadv_stop(void)
Stop the automated advertising procedure.