move whole pairing process into bleconnection
This commit is contained in:
9 files changed
+219
-188
No files matched your search
@@ -139,7 +139,7 @@ void BLEGatt::_eventHandler(ble_evt_t* evt)
|
||||
// Save CCCD if paired
|
||||
if ( Bluefruit.connPaired() && (evt_id == BLE_GATTS_EVT_WRITE) && (req_handle == chr->handles().cccd_handle) )
|
||||
{
|
||||
bond_save_cccd( Bluefruit.Gap.getRole(evt_conn_hdl), evt_conn_hdl, conn->ediv);
|
||||
bond_save_cccd( Bluefruit.Gap.getRole(evt_conn_hdl), evt_conn_hdl, conn->_ediv);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user