micro:bitにRCBControllerを接続するサンプルプログラム。 接続が不安定。micro:bitの電源入り切りやリセットSW押下を何度か試せば接続できるかも。

Dependencies:   microbit

Fork of BLE_GATT_Example by Bluetooth Low Energy

Revision:
17:32973972d2dd
Parent:
16:feee85aefb34
Child:
18:7d89c4fba362
Child:
19:477567297aac
diff -r feee85aefb34 -r 32973972d2dd main.cpp
--- a/main.cpp	Thu Apr 02 17:23:10 2015 +0000
+++ b/main.cpp	Thu Apr 02 18:30:24 2015 +0000
@@ -71,7 +71,7 @@
     ble.setAdvertisingType(GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED); // advertising type
     ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LOCAL_NAME, (uint8_t *)DEVICE_NAME, sizeof(DEVICE_NAME)); // add name
     ble.accumulateAdvertisingPayload(GapAdvertisingData::COMPLETE_LIST_16BIT_SERVICE_IDS, (uint8_t *)uuid16_list, sizeof(uuid16_list)); // UUID's broadcast in advertising packet
-    ble.setAdvertisingInterval(0.1); // 100ms. 
+    ble.setAdvertisingInterval(100); // 100ms. 
 
     // add our custom service
     ble.addService(customService);