Aidan Wynn / libmDot-mbed5

Dependents:   Cloudtracker

Revision:
72:b1e07ec1c30d
Parent:
69:e22889c7eaa9
--- a/plans/ChannelPlan_AS923.h	Fri Nov 08 09:34:58 2019 -0600
+++ b/plans/ChannelPlan_AS923.h	Mon Feb 17 14:43:04 2020 -0600
@@ -98,7 +98,7 @@
              * @param window
              * @return RxWindow
              */
-            virtual RxWindow GetRxWindow(uint8_t window);
+            virtual RxWindow GetRxWindow(uint8_t window, int8_t id = -1);
 
             /**
              * Get datarate to use on the join request
@@ -119,18 +119,6 @@
              */
             virtual uint8_t SetTxConfig();
 
-            /**
-             * Set the SxRadio rx config provided window
-             * @param window to be opened
-             * @param continuous keep window open
-             * @param wnd_growth factor to increase the rx window by
-             * @param pad_ms time in milliseconds to add to computed window size
-             * @return LORA_OK
-             */
-            virtual uint8_t SetRxConfig(uint8_t window,
-                                        bool continuous,
-                                        uint16_t wnd_growth,
-                                        uint16_t pad_ms);
 
             /**
              * Set frequency sub band if supported by plan
@@ -140,12 +128,6 @@
             virtual uint8_t SetFrequencySubBand(uint8_t sub_band);
 
             /**
-             * Callback for ACK timeout event
-             * @return LORA_OK
-             */
-            virtual uint8_t HandleAckTimeout();
-
-            /**
              * Callback for Join Accept packet to load optional channels
              * @return LORA_OK
              */
@@ -259,6 +241,12 @@
             virtual uint8_t GetMaxPayloadSize();
 
             /**
+             * Get max payload size for given datarate
+             * @return size in bytes
+             */
+            virtual uint8_t GetMaxPayloadSize(uint8_t dr) { return ChannelPlan::GetMaxPayloadSize(dr); }
+
+            /**
              * Decrements the datarate based on TxDwellTime
              */
             virtual void DecrementDatarate();
@@ -270,7 +258,7 @@
              * @param [out] data extracted from the beacon if this packet was indeed a beacon
              * @return true if this packet is beacon, false if not
              */
-            virtual bool DecodeBeacon(const uint8_t* payload,
+            virtual uint8_t DecodeBeacon(const uint8_t* payload,
                                       size_t size,
                                       BeaconData_t& data);