ble nano hid over gatt

Dependencies:   BLE_API mbed-dev nRF51822

Revision:
54:899fc2b0a76b
Parent:
50:c1382a0ff066
Child:
55:f01a31103685
--- a/HIDController_BLE.cpp	Mon Aug 29 16:41:36 2016 +0000
+++ b/HIDController_BLE.cpp	Tue Aug 30 13:18:00 2016 +0000
@@ -121,7 +121,8 @@
 	ble.securityManager().onPasskeyDisplay(passkeyDisplayCallback);
 	ble.securityManager().onSecuritySetupCompleted(securitySetupCompletedCallback);
 	// bonding with hard-coded passkey.
-	error = ble.securityManager().init(ENABLE_BONDING, REQUIRE_MITM, SecurityManager::IO_CAPS_DISPLAY_ONLY, PASSKEY);
+	error = ble.securityManager().init(ENABLE_BONDING, REQUIRE_MITM, SecurityManager::IO_CAPS_DISPLAY_YESNO, PASSKEY);
+	// error = ble.securityManager().init(ENABLE_BONDING, REQUIRE_MITM, SecurityManager::IO_CAPS_DISPLAY_ONLY, PASSKEY);
 	if (error != BLE_ERROR_NONE) {
 		DEBUG_PRINTF_BLE("error on ble.securityManager().init()");
 		goto return_error;