PebbleOS v4.47.0-505-g4bbc630fa
Loading...
Searching...
No Matches
GAP events

The handler of a connection's GAP events. More...

Functions

int pbl_bt_gap_event_handler (struct ble_gap_event *event, void *arg)
 Handle a GAP event of a connection.
 

Detailed Description

The handler of a connection's GAP events.

Function Documentation

◆ pbl_bt_gap_event_handler()

int pbl_bt_gap_event_handler ( struct ble_gap_event *  event,
void *  arg 
)

Handle a GAP event of a connection.

Connections are only established through advertising: pass this handler to ble_gap_adv_start(), and the events of the connections it leads to are reported through the subsystem (see LE connections).

Parameters
eventEvent.
argUnused.
Returns
0, or what the event asks for.