enhance BLEGap, adding BLEGapConnection to support up to max 20 connections

This commit is contained in:
hathach committed 2019-01-17 12:53:22 +07:00
1 parent 2b603b9bbc
commit e312da361e
9 files changed
+191 -138

No files matched your search

+1 -1
View File
@@ -147,7 +147,7 @@ void BLEGatt::_eventHandler(ble_evt_t* evt)
if ( Bluefruit.connPaired() && (evt_id == BLE_GATTS_EVT_WRITE) && (req_handle == chr->handles().cccd_handle) )
{
BLEGap::gap_peer_t* peer = Bluefruit.Gap._get_peer(evt_conn_hdl);
bond_save_cccd( peer->role, evt_conn_hdl, peer->ediv);
bond_save_cccd( Bluefruit.Gap.getRole(evt_conn_hdl), evt_conn_hdl, peer->ediv);
}
}
}