demo project

Dependencies:   AX-12A Dynamixel mbed iothub_client EthernetInterface NTPClient ConfigFile SDFileSystem iothub_amqp_transport mbed-rtos proton-c-mbed wolfSSL

Revision:
18:224289104fc0
Parent:
15:4bd10f531cdc
Child:
21:051751f9ca9e
--- a/IothubRobotArm.cpp	Fri Jan 22 01:35:07 2016 +0000
+++ b/IothubRobotArm.cpp	Sat Jan 23 00:08:30 2016 +0000
@@ -14,6 +14,7 @@
 #include "threadapi.h"
 #include "crt_abstractions.h"
 #include "iothubtransportamqp.h"
+
 #include "MeasureBuf.h"
 #include "IothubRobotArm.h"
 #include "IothubSerial.h"
@@ -220,7 +221,6 @@
     
     ThreadAPI_Create(&IotThread, IothubThread, NULL);
  
-     //IotThread = new Thread(IothubThread, NULL, osPriorityLow); 
     return true;
 }
 
@@ -298,10 +298,10 @@
         int msglen = 0;
 
         // get alert if any, otherwise get measure data
-        msglen = msgSerialize.AlertBufToString(msgText, MESSAGE_LEN);
+        msglen = _msgSerialize.AlertBufToString(msgText, MESSAGE_LEN);
         if (msglen == 0)
         {
-            msglen = msgSerialize.MeasureBufToString(msgText, MESSAGE_LEN);
+            msglen = _msgSerialize.MeasureBufToString(msgText, MESSAGE_LEN);
         }
         
         if (msglen > 0)