This program connects to the The Things Network backend in OTAA Mode. It logs sensor values from a BME 280 to the backend. Tried adding support for Grove GPS using SerialGPS library but it is not working - conflicting with mbed-rtos, so it commented. Deep Sleep for mDot implemented BUT avoiding reprogramming of the mDot config is NOT working.

Dependencies:   BME280 SerialGPS libmDot mbed-rtos mbed

Revision:
11:3481e24747e2
Parent:
10:8071e1ae92ac
--- a/main.cpp	Sat Jul 09 16:38:21 2016 +0000
+++ b/main.cpp	Wed Jul 13 19:33:28 2016 +0000
@@ -199,7 +199,7 @@
         }
 
         // Goto Sleep, commenting out the osDelay since next Tx would be after waking up
-        mDotGotoDeepSleep(5, true);
+        mDotGotoDeepSleep(60, false);
 
         // in the 868 (EU) frequency band, we need to wait until another channel is available before transmitting again
         //osDelay(std::max((uint32_t)5000, (uint32_t)dot->getNextTxMs()));