Official reference client implementation for Cumulocity SmartREST on u-blox C027.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: operation/OperationSupport.cpp
- Revision:
- 100:47ea098f8a47
- Parent:
- 94:61d44636f020
- Child:
- 101:dbcd3bc51758
--- 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();