This commit is contained in:
hathach committed 2020-03-16 22:44:24 +07:00
1 parent b487db9603
commit 7b432602aa
3 files changed
+23 -16

No files matched your search

@@ -195,6 +195,18 @@ void BLEPairing::setCompleteCallback(pair_complete_cb_t fp)
_complete_cb = fp;
}
bool BLEPairing::_authenticate(uint16_t conn_hdl)
{
VERIFY_STATUS(sd_ble_gap_authenticate(conn_hdl, &_sec_param ), false);
return true;
}
bool BLEPairing::_encrypt(uint16_t conn_hdl, bond_keys_t const* ltkey)
{
VERIFY_STATUS(sd_ble_gap_encrypt(conn_hdl, &ltkey->peer_enc.master_id, &ltkey->peer_enc.enc_info), false);
return true;
}
//--------------------------------------------------------------------+
/* First-time Pairing
*