Alexander Lea / Mbed 2 deprecated BLE_GATT_test1

Dependencies:   BLE_API mbed nRF51822

Revision:
1:ebdf445c4bcc
Parent:
0:af868ad47854
Child:
2:f538ff758828
--- a/main.cpp	Sun Jan 18 15:17:53 2015 +0000
+++ b/main.cpp	Sun Jan 18 15:46:43 2015 +0000
@@ -16,7 +16,7 @@
 Serial pc(USBTX, USBRX);
 
 /*Variable Declarations*/
-const static char     DEVICE_NAME[]        = "BLE_CAR_NODE";
+const static char     DEVICE_NAME[]        = "BLE_NODE";
 
 ///*
 //* Define a custom UUID, first as an array of uint8_t and then convert to
@@ -36,13 +36,6 @@
 //// Create a proper UUID
 //UUID characteristic_uuid =       {0x4d,0x32,0x81,0xc0,0x86,0xd1,0x11,0xe4,0xb0,0x84,0x00,0x02,0xa5,0xd5,0xc5,0x10};
 
-uint8_t raw_service_uuid[16] = {
-    'M', 'Y', '_', 'T',
-    'E', 'S', 'T', '_',
-    'S', 'E', 'R', 'V',
-    'I', 'C', 'E', 0
-};
-
 static volatile bool connected;
 //Ticker ticker;
 //
@@ -181,11 +174,11 @@
         testLevel++;
         
         if (testLevel > 100) {
-            testLevel = 20;
+            testLevel = 0;
         }
 
         pc.printf("Level = %u\r\n", testLevel);
-        testService.updateTestLevel(testLevel);
+        testService.sendCommand(testLevel);
         
         //if(connected) {
 //            led1 = 1;