add con_handl to central disconnect callback. Starting to add ada_callback
This commit is contained in:
1 parent
1d9d23ddce
commit
c7f8a8d67f
5 files changed
+106
-3
No files matched your search
@@ -252,7 +252,7 @@ void BLECentral::_event_handler(ble_evt_t* evt)
|
||||
|
||||
_conn_hdl = BLE_CONN_HANDLE_INVALID;
|
||||
|
||||
if ( _disconnect_cb ) _disconnect_cb(evt->evt.gap_evt.params.disconnected.reason);
|
||||
if ( _disconnect_cb ) _disconnect_cb(evt_conn_hdl, evt->evt.gap_evt.params.disconnected.reason);
|
||||
|
||||
startScanning();
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user