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: io/GPSTracker.cpp
- Revision:
- 135:c4009ecaf5c0
- Parent:
- 131:ca312ec4bd0f
--- a/io/GPSTracker.cpp Fri Aug 07 12:55:27 2015 +0000 +++ b/io/GPSTracker.cpp Mon Aug 10 14:18:05 2015 +0000 @@ -3,6 +3,7 @@ #include "GPSTracker.h" #include "logging.h" + GPSTracker::GPSTracker() : _gps(), _thread(GPSTracker::thread_func, this), @@ -11,6 +12,7 @@ _gps.init(); } + bool GPSTracker::position(GPSTracker::Position *position) { bool result = false; @@ -26,6 +28,7 @@ return result; } + void GPSTracker::thread() { char buf[256], chr; // needs to be that big otherwise mdm isn't working @@ -39,7 +42,7 @@ } len = LENGTH(ret); if ((PROTOCOL(ret) != GPSParser::NMEA) || (len <= 6)) { - aWarning("GPS data is not in NMEA protocol!\r\n"); + aWarning("GPS data is not in NMEA protocol!\n"); continue; } @@ -67,6 +70,7 @@ } } + void GPSTracker::thread_func(void const *arg) { GPSTracker *that;