Ashu Joshi / Mbed 2 deprecated SensorInterface

Dependencies:   BME280 SerialGPS libmDot mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
AshuJoshi
Date:
Wed Jul 13 19:33:28 2016 +0000
Parent:
10:8071e1ae92ac
Child:
12:d603cbb3597c
Commit message:
Stable version works with local and remote TTN

Changed in this revision

LoRa.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/LoRa.h	Sat Jul 09 16:38:21 2016 +0000
+++ b/LoRa.h	Wed Jul 13 19:33:28 2016 +0000
@@ -9,7 +9,8 @@
 uint8_t NwkSKey[16]= { 0x60, 0xBF, 0x44, 0xA9, 0x56, 0x0A, 0x4C, 0xB4, 0xF2, 0xEB, 0xB1, 0x6B, 0x9A, 0x2C, 0x57, 0x32 };
 
 // App Key 1DD7BB3D3E43ED13029996BEC25BF190
-uint8_t AppKey[16] = {0x1D, 0xD7, 0xBB, 0x3D, 0x3E, 0x43, 0xED, 0x13, 0x02, 0x99, 0x96, 0xBE, 0xC2, 0x5B, 0xF1, 0x90};
+//uint8_t AppKey[16] = {0x1D, 0xD7, 0xBB, 0x3D, 0x3E, 0x43, 0xED, 0x13, 0x02, 0x99, 0x96, 0xBE, 0xC2, 0x5B, 0xF1, 0x90};
+uint8_t AppKey[16] = {0xDF, 0xB4, 0x17, 0x78, 0x4A, 0x89, 0xC6, 0xB7, 0xD3, 0xBE, 0x18, 0x55, 0x32, 0x4F, 0x58, 0x91};
 // App EUI 70B3D57ED00005D5
 uint8_t AppEUI[8] = {0x70, 0xB3, 0xD5, 0x7E, 0xD0, 0x00, 0x05, 0xD5};
 
--- 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()));