works with TTN and cheap STM32F103C8T6 boards
Dependencies: LMiC_CFG_eu868 SX1276Lib mbed-STM32F103C8T6 mbed
Fork of LoRaWAN-lmic-app by
STM32F103C8T6 + RFM95 LoRa Node
flash board wirh STLink
openocd -f interface/stlink-v2.cfg -f target/stm32f1x_stlink.cfg \ -c "program STM32F103C8T6_LoRaWAN-lmic-app_NUCLEO_F103RB.bin exit verify reset 0x08000000"
Diff: main.cpp
- Revision:
- 5:1b2fcc2582e8
- Parent:
- 3:ce28e3313a88
- Child:
- 6:b2e833061c1f
--- 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 )