EasyButtonCode
Dependencies: libmDot mbed-rtos mbed
Fork of mDot_TTN_DS18B20 by
Diff: main.cpp
- Revision:
- 11:38ce10209eff
- Parent:
- 10:717a3d909c6b
- Child:
- 12:e82913ee9c61
--- a/main.cpp Sat Nov 14 20:17:03 2015 +0000 +++ b/main.cpp Sat Nov 14 20:54:36 2015 +0000 @@ -1,6 +1,6 @@ /** mDot_TTN_DS18B20 - Simple mDot temperature sensor using Dallas Semiconductors DS18B20 OneWire temperature sensor. * It used the MANUAL join mode with parameters for The Things Network. - * + * * * Uses MultiTech mDot developer board http://www.multitech.com/models/94558010LF * Requires a MultiTech MultiConnect Conduit http://www.multitech.com/models/94557203LF @@ -30,7 +30,7 @@ uint8_t NwkSKey[16]= {0x2B, 0x7E, 0x15, 0x16, 0x28, 0xAE, 0xD2, 0xA6, 0xAB, 0xF7, 0x15, 0x88, 0x09, 0xCF, 0x4F, 0x3C}; // Network Address - Get your own address range at http://thethingsnetwork.org/wiki/AddressSpace -uint8_t NetworkAddr[4]= {0x02,0x01,0xXX,0xXX}; // Our Network address or Node ID +uint8_t NetworkAddr[4]= {0x02,0x01,0x00,0x00}; // Our Network address or Node ID // Some defines for the LoRa configuration @@ -68,9 +68,6 @@ float temperature = 0.0; - // Enable internal pullup on input pin - configReset.mode(PullUp); - pc.baud(115200); pc.printf("TTN mDot LoRa Temperature sensor\n\r");