This is an example application based on Mbed-OS LoRaWAN protocol APIs. The Mbed-OS LoRaWAN stack implementation is compliant with LoRaWAN v1.0.2 specification.
Dependencies: Lorawan_Version_0_1
Dependents: Lorawan_Version_0_1
Diff: main.cpp
- Revision:
- 60:65d39aaa1714
- Parent:
- 56:39847849d219
- Child:
- 61:2b30d8e75fe7
diff -r 23cc35ed9008 -r 65d39aaa1714 main.cpp --- a/main.cpp Thu Nov 28 09:01:59 2019 +0000 +++ b/main.cpp Thu Nov 28 11:51:02 2019 +0000 @@ -36,7 +36,7 @@ /* * Sets up an application dependent transmission timer in ms. Used only when Duty Cycling is off for testing */ -#define TX_TIMER 10000 +#define TX_TIMER 50000 /** * Maximum number of events for the event queue. @@ -205,6 +205,18 @@ for (uint8_t i = 0; i < retcode; i++) { printf("%02x ", rx_buffer[i]); } + + if (rx_buffer[0] == 0xa1) + { + printf(" Command: Lampe an"); + } + + if (rx_buffer[0] == 0xa0) + { + printf(" Command: Lampe aus"); + } + + printf("\r\n"); memset(rx_buffer, 0, sizeof(rx_buffer));