TOMAS GIACAMAN / Mbed 2 deprecated 170330-01_BluNode_V4

Dependencies:   mbed

Fork of 170316-01_BluNode_V4_lala by TOMAS GIACAMAN

Files at this revision

API Documentation at this revision

Comitter:
tgiacaman
Date:
Sat Feb 04 18:51:08 2017 +0000
Parent:
5:c3b6627770ee
Child:
7:d2c5fe41fdec
Commit message:
a

Changed in this revision

Source/BluNodeMain.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Source/BluNodeMain.cpp	Sat Feb 04 18:34:17 2017 +0000
+++ b/Source/BluNodeMain.cpp	Sat Feb 04 18:51:08 2017 +0000
@@ -46,7 +46,7 @@
 //-- Definitions - Parameters
 //------------------------------------------------------------------------------
 
-const static char     DEVICE_NAME[] = "BluNode06";
+const static char     DEVICE_NAME[] = "BluNode";
 #define     COMPANY_ID  0x0102
 
 //------------------------------------------------------------------------------
@@ -57,7 +57,8 @@
 bool isConnected=false;
 int advActivePeriod;
 int sleepActivePeriod;
-uint8_t AdvData[] = {
+
+static uint8_t AdvData[] = {
     (COMPANY_ID & 0xFF),
     ((COMPANY_ID >> 8) & 0xFF),
     0x03,
@@ -74,12 +75,7 @@
     0x14,
     0x15,
     0x16,
-    0x17,
-    0x18,
-    0x19,
-    0x20,
-    0x21,
-    0x22
+    0x17
 };
 
 static int value0,value1,value2,value3; // stored voltage reading from ADC