add connection handle for central callback
This commit is contained in:
1 parent
006f74aade
commit
13571bfb7a
3 files changed
+4
-3
No files matched your search
@@ -242,7 +242,7 @@ void BLECentral::_event_handler(ble_evt_t* evt)
|
||||
// TODO multiple connections
|
||||
_conn_hdl = evt->evt.gap_evt.conn_handle;
|
||||
|
||||
if ( _connect_cb ) _connect_cb();
|
||||
if ( _connect_cb ) _connect_cb(evt->evt.gap_evt.conn_handle);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user