aa
Dependents: Peripheral_1_serial_copy Peripheral_1_serial 151006_1st_Scenario_normal
Fork of nRF51822 by
Diff: btle/btle_security.cpp
- Revision:
- 142:b6fe43a5c18f
- Parent:
- 141:586e146a3903
- Child:
- 143:9d73e7f9f2bf
--- a/btle/btle_security.cpp Fri May 08 15:33:56 2015 +0100 +++ b/btle/btle_security.cpp Fri May 08 15:33:57 2015 +0100 @@ -94,6 +94,7 @@ ret_code_t rc; dm_handle_t dmHandle; if ((rc = dm_handle_get(connectionHandle, &dmHandle)) != NRF_SUCCESS) { + printf("dm_handle_get failed with %u\r\n", rc); if (rc == NRF_ERROR_NOT_FOUND) { return BLE_ERROR_INVALID_PARAM; } else { @@ -102,6 +103,7 @@ } if ((rc = dm_security_status_req(&dmHandle, reinterpret_cast<dm_security_status_t *>(securityStatusP))) != NRF_SUCCESS) { + printf("security status request failed\r\n"); switch (rc) { case NRF_ERROR_INVALID_STATE: return BLE_ERROR_INVALID_STATE;