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:
43:dbb025ed4a55
Parent:
42:06ebef2e0e44
Child:
45:98c5a34b07a4
--- a/main.cpp	Mon Sep 22 10:38:25 2014 +0000
+++ b/main.cpp	Tue Sep 23 15:04:58 2014 +0000
@@ -19,7 +19,6 @@
 #include "HeartRateService.h"
 #include "BatteryService.h"
 #include "DeviceInformationService.h"
-// #include "DFUService.h"
 
 BLEDevice  ble;
 DigitalOut led1(LED1);
@@ -34,7 +33,7 @@
 #define DEBUG(...) /* nothing */
 #endif /* #if NEED_CONSOLE_OUTPUT */
 
-const static char     DEVICE_NAME[]        = "Nordic_HRM";
+const static char     DEVICE_NAME[]        = "HRMonitor";
 static const uint16_t uuid16_list[]        = {GattService::UUID_HEART_RATE_SERVICE,
                                               GattService::UUID_BATTERY_SERVICE,
                                               GattService::UUID_DEVICE_INFORMATION_SERVICE};
@@ -77,10 +76,8 @@
 
     uint8_t hrmCounter = 100;
     HeartRateService hrService(ble, hrmCounter, HeartRateService::LOCATION_FINGER);
-
     BatteryService battery(ble);
-    DeviceInformationService deviceInfo(ble, "ARM");
-    // DFUService dfu(ble);
+    DeviceInformationService deviceInfo(ble, "ARM", "Model1", "SN1", "hw-rev1", "fw-rev1", "soft-rev1");
 
     while (true) {
         if (triggerSensorPolling) {