Xinlei Cao / Mbed 2 deprecated MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Revision:
99:47ea098f8a47
Parent:
93:61d44636f020
Child:
100:dbcd3bc51758
diff -r e369fc75c000 -r 47ea098f8a47 operation/OperationSupport.cpp
--- a/operation/OperationSupport.cpp	Thu May 07 09:57:55 2015 +0000
+++ b/operation/OperationSupport.cpp	Thu May 07 13:56:19 2015 +0000
@@ -96,10 +96,9 @@
 bool OperationSupport::requestPendingOperations()
 {
     IntegerValue msgId(110);
-    IntegerValue deviceId(_deviceId);
     ComposedRecord record;
 
-    if ((!record.add(msgId)) || (!record.add(deviceId)))
+    if (!record.add(msgId) || !record.add(IntegerValue(deviceID)))
         return false;
     else if (_client.send(record) != SMARTREST_SUCCESS) {
         _client.stop();