add con_handl to central disconnect callback. Starting to add ada_callback

This commit is contained in:
hathach committed 2017-04-03 12:44:53 +07:00
1 parent 1d9d23ddce
commit c7f8a8d67f
5 files changed
+106 -3

No files matched your search

+1 -1
View File
@@ -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;