Demo Glucose Service

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_HeartRate by Bluetooth Low Energy

BLE_Glucose_demo implements the Glucose Service which enables a collector device to connect and interact with.

There is a brief sample code edited with Android Studio for demo this BLE_Glucose_demo example, and it is public on github, everyone can clone it by this URL: https://github.com/Marcomissyou/BluetoothLeGlucose.git. It is convenient for you to development your BLE idea.

There is also provided apk file so you can download and install it directly then demo this code, but make sure your Android phone supports Bluetooth 4.0. /media/uploads/Marcomissyou/bleglucoseservice.apk

Revision:
35:ba3e3174331a
Parent:
34:44dc6efc0b50
Child:
36:ea2a1b4f51c1
--- a/main.cpp	Tue Jul 08 11:19:52 2014 +0100
+++ b/main.cpp	Fri Jul 11 11:07:25 2014 +0100
@@ -50,9 +50,9 @@
 
 static const uint16_t uuid16_list[] = {GattService::UUID_HEART_RATE_SERVICE};
 
-void disconnectionCallback(void)
+void disconnectionCallback(Gap::Handle_t handle)
 {
-    DEBUG("Disconnected!\n\r");
+    DEBUG("Disconnected handle %u!\n\r", handle);
     DEBUG("Restarting the advertising process\n\r");
     ble.startAdvertising();
 }