ble nano hid over gatt

Dependencies:   BLE_API mbed-dev nRF51822

Revision:
57:ae521136842c
Parent:
56:e1d90e2c7402
Child:
58:64df960619ce
--- a/HIDController_BLE.cpp	Tue Aug 30 14:13:20 2016 +0000
+++ b/HIDController_BLE.cpp	Tue Aug 30 14:17:14 2016 +0000
@@ -121,8 +121,7 @@
 	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_YESNO, 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_ONLY, PASSKEY);
 	if (error != BLE_ERROR_NONE) {
 		DEBUG_PRINTF_BLE("error on ble.securityManager().init()");
 		goto return_error;