Go to the documentation of this file.
50 #ifndef NIMBLE_STATCONN_H
51 #define NIMBLE_STATCONN_H
64 #ifndef NIMBLE_STATCONN_ADV_ITVL_MS
65 #define NIMBLE_STATCONN_ADV_ITVL_MS (90U)
71 #ifndef NIMBLE_STATCONN_CONN_WIN_MS
72 #define NIMBLE_STATCONN_CONN_WIN_MS (100U)
78 #ifndef NIMBLE_STATCONN_CONN_TIMEOUT_MS
79 #define NIMBLE_STATCONN_CONN_TIMEOUT_MS (600U)
85 #ifndef NIMBLE_STATCONN_CONN_ITVL_MS
86 #define NIMBLE_STATCONN_CONN_ITVL_MS (75U)
92 #ifndef NIMBLE_STATCONN_CONN_LATENCY
93 #define NIMBLE_STATCONN_CONN_LATENCY (0)
99 #ifndef NIMBLE_STATCONN_CONN_SUPERTO_MS
100 #define NIMBLE_STATCONN_CONN_SUPERTO_MS (2500U)
@ NIMBLE_STATCONN_INUSE
given peer is already managed
GNRC netif implementation for NimBLE.
int nimble_statconn_add_slave(const uint8_t *addr)
Connect to a peer (slave) with a given address as master.
void(* nimble_netif_eventcb_t)(int handle, nimble_netif_event_t event, const uint8_t *addr)
Event callback signature used for asynchronous event signaling.
@ NIMBLE_STATCONN_NOSLOT
no more connection slot available
void nimble_statconn_eventcb(nimble_netif_eventcb_t cb)
Register a callback that is called on netif events.
int nimble_statconn_rm(const uint8_t *addr)
Remove the connection to the given peer.
int nimble_statconn_add_master(const uint8_t *addr)
Connect to peer (master) with a given address as slave.
@ NIMBLE_STATCONN_OK
all groovy
@ NIMBLE_STATCONN_NOTCONN
given address is not managed
void nimble_statconn_init(void)
Initialize the statconn module.