Loading...
Searching...
No Matches
nimble_autoconn.h File Reference

Simple automated connection manager for NimBLE netif. More...

Detailed Description

Simple automated connection manager for NimBLE netif.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file nimble_autoconn.h.

#include <stdint.h>
#include "nimble_netif.h"
+ Include dependency graph for nimble_autoconn.h:

Go to the source code of this file.

Data Structures

struct  nimble_autoconn_params_t
 Set of configuration parameters needed to run autoconn. More...
 

Enumerations

enum  { NIMBLE_AUTOCONN_OK = 0 , NIMBLE_AUTOCONN_PARAMERR = -1 , NIMBLE_AUTOCONN_ADERR = -2 }
 Return codes used by the autoconn module. More...
 

Functions

int nimble_autoconn_init (const nimble_autoconn_params_t *params, const uint8_t *ad, size_t adlen)
 Initialize and enable the autoconn module.
 
void nimble_autoconn_eventcb (nimble_netif_eventcb_t cb)
 Register a callback that is called on netif events.
 
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)
 
void nimble_autoconn_enable (void)
 Enable automated creation of new BLE connections.
 
void nimble_autoconn_disable (void)
 Disable the automated connection management.