LoRaWAN Class A node example based on IBM LoRa MAC in C (LMiC) implementation
Dependencies: LMiC SX1276Lib mbed
Revision 5:1b2fcc2582e8, committed 2015-11-26
- Comitter:
- mluis
- Date:
- Thu Nov 26 17:20:53 2015 +0000
- Parent:
- 4:a3abc54af9e5
- Commit message:
- Updated LMiC and SX1276Lib libraries.
Changed in this revision
diff -r a3abc54af9e5 -r 1b2fcc2582e8 LMiC.lib --- a/LMiC.lib Thu Nov 26 12:49:16 2015 +0000 +++ b/LMiC.lib Thu Nov 26 17:20:53 2015 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/Semtech/code/LMiC/#519c71d29a06 +https://developer.mbed.org/teams/Semtech/code/LMiC/#85b2b647cb64
diff -r a3abc54af9e5 -r 1b2fcc2582e8 SX1276Lib.lib --- a/SX1276Lib.lib Thu Nov 26 12:49:16 2015 +0000 +++ b/SX1276Lib.lib Thu Nov 26 17:20:53 2015 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/teams/Semtech/code/SX1276Lib/#2e496deb7858 +http://developer.mbed.org/teams/Semtech/code/SX1276Lib/#7f3aab69cca9
diff -r a3abc54af9e5 -r 1b2fcc2582e8 main.cpp --- a/main.cpp Thu Nov 26 12:49:16 2015 +0000 +++ b/main.cpp Thu Nov 26 17:20:53 2015 +0000 @@ -213,7 +213,11 @@ // reset MAC state LMIC_reset( ); LMIC_setAdrMode( LORAWAN_ADR_ON ); +#if defined(CFG_eu868) LMIC_setDrTxpow( DR_SF12, 14 ); +#elif defined(CFG_us915) + LMIC_setDrTxpow( DR_SF10, 14 ); +#endif // start joining #if( OVER_THE_AIR_ACTIVATION != 0 )