ble nano hid over gatt
Dependencies: BLE_API mbed-dev nRF51822
Diff: HIDController_BLE.cpp
- Revision:
- 34:7da766a8aa96
- Parent:
- 32:6c0f43fda460
- Child:
- 37:4ce71fa47fc3
--- a/HIDController_BLE.cpp Thu Aug 25 00:43:55 2016 +0000 +++ b/HIDController_BLE.cpp Thu Aug 25 12:57:48 2016 +0000 @@ -79,6 +79,7 @@ static void onConnect(const Gap::ConnectionCallbackParams_t *params) { peerAddress.type = params->peerAddrType; memcpy(peerAddress.address, params->peerAddr, Gap::ADDR_LEN); + // TODO whitelist に peerAddr が含まれていない場合 securitySetupCompletedCallback を待ってから CONNECTED にすべき controllerStatus = CONNECTED; }