Wireless interface using LoRa technology

Dependencies:   AlohaTransceiver RingBuffer SX1276Lib SerialInterfaceProtocol mbed L3PDU

Revision:
29:020355bfe3a6
Parent:
28:0c59edd704a0
Child:
30:7f0f887040a2
diff -r 0c59edd704a0 -r 020355bfe3a6 main.cpp
--- a/main.cpp	Tue Sep 06 03:09:59 2016 +0000
+++ b/main.cpp	Wed Sep 07 04:53:57 2016 +0000
@@ -558,14 +558,13 @@
                     // copy sensor type
                     payload[0] = 0x0;           // assume 0x00 is temperature sensor
                     
-                    // copy sensor data
+                    // copy source address
                     payload[1] = dataBlockPacket.getSourceID();       // assume we only use one byte
                     
-                    // copy address of source node
-                    payload[2] = dataBlockPacket.getData(0);
+                    // copy temperature
                     for (uint8_t i = 0; i < 4; i++)
                     {
-                        payload[i + 2] = dataBlockPacket.getData(i + 1);
+                        payload[i + 2] = dataBlockPacket.getData(i);
                     }
                     
                     // copy snr