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

@@ -143,7 +143,7 @@ static void bledfu_control_wr_authorize_cb(BLECharacteristic& chr, ble_gatts_evt
{
bond_keys_t bkeys;
if ( bond_load_keys( BLE_GAP_ROLE_PERIPH, Bluefruit.Gap.getConnection(conn_hdl)->ediv, &bkeys ) )
if ( bond_load_keys( BLE_GAP_ROLE_PERIPH, Bluefruit.Gap.getConnection(conn_hdl)->_ediv, &bkeys ) )
{
peer_data->addr = bkeys.peer_id.id_addr_info;
peer_data->irk = bkeys.peer_id.id_info;