ble nano hid over gatt

Dependencies:   BLE_API mbed-dev nRF51822

Revision:
84:b917922bb5f1
Parent:
83:2e940d154f8b
Child:
85:e526a89a0674
--- a/HIDController_BLE.cpp	Sun Sep 04 01:12:45 2016 +0900
+++ b/HIDController_BLE.cpp	Sun Sep 04 17:22:20 2016 +0900
@@ -16,10 +16,10 @@
 static const char FIRMWARE_REVISION[] = "0.1";
 static const char SOFTWARE_REVISION[] = "0.0";
 static PnPID_t PNP_ID = {
-    0x00,
-    0x0000,
-    0x0000,
-    0x00,
+    0x01,  // From Bluetooth SIG
+    0xFFFE,
+    0x0001,
+    0x01,
 };
 
 static const uint8_t DEVICE_NAME[] = "Keble";
@@ -247,6 +247,8 @@
 	}
 
 	ble.gap().setAdvertisingPolicyMode(Gap::ADV_POLICY_IGNORE_WHITELIST);
+	ble.gap().setScanningPolicyMode(Gap::SCAN_POLICY_FILTER_ALL_ADV);
+	ble.gap().setInitiatorPolicyMode(Gap::INIT_POLICY_FILTER_ALL_ADV);
 
 	// DEBUG_PRINTF_BLE("advertising\r\n");
 	error = ble.gap().startAdvertising();