Wireless interface using LoRa technology
Dependencies: AlohaTransceiver RingBuffer SX1276Lib SerialInterfaceProtocol mbed L3PDU
Diff: main.cpp
- Revision:
- 12:2ead6bfd9f2a
- Parent:
- 11:9590f3c9d915
- Child:
- 14:25e836a5a7bf
diff -r 9590f3c9d915 -r 2ead6bfd9f2a main.cpp --- a/main.cpp Fri Aug 05 11:18:49 2016 +0000 +++ b/main.cpp Mon Aug 08 09:38:12 2016 +0000 @@ -409,9 +409,9 @@ txFrame.setDestinationAddress(frame->getSourceAddress()); txFrame.setFullMessageFlag(frame->getFullMessageFlag()); txFrame.setSequenceID(frame->getSequenceID() + 1); - txFrame.setPayload(snr, 0); - txFrame.setPayload(rssi_h, 1); - txFrame.setPayload(rssi_l, 2); + txFrame.setPayload(0, snr); + txFrame.setPayload(1, rssi_h); + txFrame.setPayload(2, rssi_l); txFrame.generateCrc();