this is the working code for the xdot to read in serial from the pi and send it over LoRa

Revision:
14:f0c24ce93427
Parent:
10:1e831990a669
Child:
16:4a382fe8f51b
--- a/Mote.h	Thu Jul 27 11:08:40 2017 -0500
+++ b/Mote.h	Thu Aug 23 14:21:20 2018 -0500
@@ -31,6 +31,11 @@
     class MoteEvents: public MacEvents {
 
             /**
+             * Fired at start of TX
+             */
+            virtual void TxStart(void);
+
+            /**
              * Fired at end of TX
              * @param dr datarate used for TX
              */
@@ -60,7 +65,7 @@
             virtual void JoinFailed(uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr);
 
             /**
-             * Fired when non duplicate packet is received and MIC is valid
+             * Fired when packet is received and MIC is valid
              * @param port of packet
              * @param payload received bytes
              * @param size number of received bytes
@@ -69,8 +74,10 @@
              * @param ctrl Downlink control field of packet
              * @param slot rx window packet was received
              * @param retries number of attempts before ack was received
+             * @param address of the end device
+             * @param dupRx set if this packet has already been received
              */
-            virtual void PacketRx(uint8_t port, uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr, lora::DownlinkControl ctrl, uint8_t slot, uint8_t retries = 0);
+            virtual void PacketRx(uint8_t port, uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr, lora::DownlinkControl ctrl, uint8_t slot, uint8_t retries = 0, uint32_t address = 0, bool dupRx=false);
 
             /**
              * Fired when radio has received a packet, packet is not validated
@@ -170,6 +177,7 @@
              */
             uint8_t SetChannelPlan(ChannelPlan* plan);
 
+
             Settings* GetSettings();
 
             /**