d
Dependencies: BME280 DOGS102 DS1820 MMA845x_timmeh MTS-Serial libmDot_Australia915Mhz mbed-rtos mbed
Fork of mDot_TTN_OTAA_Node by
Diff: main.cpp
- Revision:
- 16:290c505e3851
- Parent:
- 15:8a0ebf59b8bb
- Child:
- 17:55ea4f38710b
--- a/main.cpp Wed May 11 06:26:11 2016 +0000 +++ b/main.cpp Thu Jan 05 05:55:42 2017 +0000 @@ -50,9 +50,9 @@ #define MAX(a,b) (((a)>(b))?(a):(b)) // AppEUI -uint8_t AppEUI[8]={0x70, 0xB3, 0xD5, 0x00, 0x00, 0x00, 0x00, 0x00}; +uint8_t AppEUI[8]={0x02, 0x00, 0x00, 0x00, 0x00, 0xEE, 0xFF, 0xC0}; // AppKey -uint8_t AppKey[16]={0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F}; +uint8_t AppKey[16]={0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16}; // Some defines for the LoRa configuration /* @@ -273,7 +273,7 @@ // Should sleep here and wakeup after a set 5 minute interval. // in the 868 (EU) frequency band, we need to wait until another channel is available before transmitting again - uint32_t sleep_time = std::max((uint32_t)300000, (uint32_t)dot->getNextTxMs()) / 1000; + uint32_t sleep_time = std::max((uint32_t)1000, (uint32_t)dot->getNextTxMs()) / 1000; //wait_ms(2000); // go to sleep and wake up automatically sleep_time seconds later dot->sleep(sleep_time, mDot::RTC_ALARM);