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
Revision 78:bf32dfe6c47f, committed 2015-03-04
- Comitter:
- xinlei
- Date:
- Wed Mar 04 09:36:03 2015 +0000
- Parent:
- 77:f6717e4eccc4
- Child:
- 79:f7330a8013ed
- Commit message:
- New version of ublox c207 firmware.
Changed in this revision
--- a/MbedAgent.cpp Tue Mar 03 14:10:09 2015 +0000 +++ b/MbedAgent.cpp Wed Mar 04 09:36:03 2015 +0000 @@ -106,17 +106,17 @@ _mdm.setDebug(3); printf("***Enabled debug mode.***\r\n"); } -// _configurationSynchronization.run(); + _configurationSynchronization.run(); // _operationSupport.run(); -// _signalQualityMeasurement.run(); + _signalQualityMeasurement.run(); // _operationSupport.run(); -// _temperatureMeasurement.run(); + _temperatureMeasurement.run(); // _operationSupport.run(); -// _analogMeasurement.run(); + _analogMeasurement.run(); // _operationSupport.run(); -// _accelerationMeasurement.run(); + _accelerationMeasurement.run(); // _operationSupport.run(); -// _locationUpdate.run(); + _locationUpdate.run(); _operationSupport.run(); // if ((interval = _configurationProperties.readInterval()) < 0)
--- a/MbedSmartRest.lib Tue Mar 03 14:10:09 2015 +0000 +++ b/MbedSmartRest.lib Wed Mar 04 09:36:03 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/Cumulocity/code/MbedSmartRest/#e30cb7ae56af +http://mbed.org/users/Cumulocity/code/MbedSmartRest/#b3a4b4bdfc59
--- a/io/DeviceFeedback.cpp Tue Mar 03 14:10:09 2015 +0000 +++ b/io/DeviceFeedback.cpp Wed Mar 04 09:36:03 2015 +0000 @@ -47,9 +47,7 @@ void DeviceFeedback::sendMessage(uint8_t msg) { - uint8_t *msgPtr; - - msgPtr = _mail.alloc(); + uint8_t *msgPtr = _mail.alloc(); *msgPtr = msg; _mail.put(msgPtr); }
--- a/util/RtosSmartRest.cpp Tue Mar 03 14:10:09 2015 +0000 +++ b/util/RtosSmartRest.cpp Wed Mar 04 09:36:03 2015 +0000 @@ -14,9 +14,7 @@ RtosSmartRest::~RtosSmartRest() { - size_t i; - - for (i = 0; i < _count; i++) + for (size_t i = 0; i < _count; i++) delete _slots[i].inst; }
--- a/util/RtosSmartRest.h Tue Mar 03 14:10:09 2015 +0000 +++ b/util/RtosSmartRest.h Wed Mar 04 09:36:03 2015 +0000 @@ -11,7 +11,7 @@ { public: RtosSmartRest(const char*, uint16_t, const char*, MDMSerial&, uint8_t = MBEDSMARTREST_TRIES); - ~RtosSmartRest(); + virtual ~RtosSmartRest(); struct Slot { osThreadId tid;