move whole pairing process into bleconnection
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user