Go to the documentation of this file.
109 #ifndef NIMBLE_AUTOCONN_H
110 #define NIMBLE_AUTOCONN_H
173 const uint8_t *ad,
size_t adlen);
196 const uint8_t *ad,
size_t adlen);
uint32_t conn_timeout
opening a new connection is aborted after this time [in ms]
uint32_t conn_super_to
supervision timeout used for new connections [in ms]
uint32_t period_jitter
a random value from 0 to this value is added to the duration of each scanning and advertising period ...
int nimble_autoconn_update(const nimble_autoconn_params_t *params, const uint8_t *ad, size_t adlen)
Update the used parameters (timing and node ID)
GNRC netif implementation for NimBLE.
uint32_t period_adv
amount of time spend in advertising mode [in ms]
@ NIMBLE_AUTOCONN_PARAMERR
invalid parameters given
void(* nimble_netif_eventcb_t)(int handle, nimble_netif_event_t event, const uint8_t *addr)
Event callback signature used for asynchronous event signaling.
void nimble_autoconn_enable(void)
Enable automated creation of new BLE connections.
uint32_t scan_win
scan window applied while in scanning state [in ms]
const char * node_id
node ID included in the advertising data, may be NULL
@ NIMBLE_AUTOCONN_ADERR
error generating advertising data
uint32_t adv_itvl
advertising interval used when in advertising mode [in ms]
uint32_t conn_itvl
connection interval used when opening a new connection [in ms]
uint32_t period_scan
amount of time spend in scanning mode [in ms]
void nimble_autoconn_eventcb(nimble_netif_eventcb_t cb)
Register a callback that is called on netif events.
Set of configuration parameters needed to run autoconn.
uint16_t conn_latency
slave latency used for new connections [in ms]
void nimble_autoconn_disable(void)
Disable the automated connection management.
int nimble_autoconn_init(const nimble_autoconn_params_t *params, const uint8_t *ad, size_t adlen)
Initialize and enable the autoconn module.
@ NIMBLE_AUTOCONN_OK
like a walk in the park
uint32_t scan_itvl
scan interval applied while in scanning state [in ms]