move whole pairing process into bleconnection

This commit is contained in:
hathach committed 2019-01-19 01:32:08 +07:00
1 parent 2a3f6ee375
commit 5ca4309ec2
9 files changed
+219 -188

No files matched your search

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