ble nano hid over gatt

Dependencies:   BLE_API mbed-dev nRF51822

Revision:
79:0095bfb18c57
Parent:
76:8c5b07462dad
Child:
80:3beb0293b384
--- a/HIDController_BLE.cpp	Fri Sep 02 23:19:19 2016 +0900
+++ b/HIDController_BLE.cpp	Sat Sep 03 20:36:40 2016 +0900
@@ -22,7 +22,7 @@
     0x00,
 };
 
-static const uint8_t DEVICE_NAME[] = "Keble";
+static const uint8_t DEVICE_NAME[] = "Keble-dev";
 
 static const bool ENABLE_BONDING = true;
 static const bool REQUIRE_MITM = true;
@@ -168,9 +168,10 @@
 	
 	// DEBUG_PRINTF_BLE("new KeyboardService\r\n");
 	keyboardService = new KeyboardService(ble);
-	// DEBUG_PRINTF_BLE("new DeviceInformationService\r\n");
+	keyboardService->init();
+	DEBUG_PRINTF_BLE("new DeviceInformationService\r\n");
 	deviceInformationService = new DeviceInformationService(ble, MANUFACTURERERS_NAME, MODEL_NAME, SERIAL_NUMBER, HARDWARE_REVISION, FIRMWARE_REVISION, SOFTWARE_REVISION, &PNP_ID);
-	// DEBUG_PRINTF_BLE("new BatteryService\r\n");
+	DEBUG_PRINTF_BLE("new BatteryService\r\n");
 	batteryService = new BatteryService(ble, 100);
 	/** TODO
 	DEBUG_PRINTF_BLE("new DFUService\r\n");