This commit is contained in:
hathach committed 2019-02-01 16:44:30 +07:00
1 parent 9abf6711e9
commit 58106006b9
2 files changed
+10 -15

No files matched your search

@@ -254,6 +254,7 @@ void BLEConnection::_eventHandler(ble_evt_t* evt)
//--------------------------------------------------------------------+
/* First-time Pairing
* Connect -> SEC_PARAMS_REQUEST -> CONN_SEC_UPDATE -> AUTH_STATUS
* 1. Either we or peer initiate the process
* 2. Peer ask for Secure Parameter ( I/O Caps ) BLE_GAP_EVT_SEC_PARAMS_REQUEST
* 3. Pair Key exchange ( PIN code)
@@ -261,6 +262,7 @@ void BLEConnection::_eventHandler(ble_evt_t* evt)
* 5. Long term Keys exchanged BLE_GAP_EVT_AUTH_STATUS
*
* Reconnect using bonded key
* Connect -> SEC_INFO_REQUEST -> CONN_SEC_UPDATE
* 1. Either we or peer initiate the process
* 2. Peer ask for Secure Info ( bond keys ) BLE_GAP_EVT_SEC_INFO_REQUEST
* 3. Connection is secured BLE_GAP_EVT_CONN_SEC_UPDATE