Fork of Semtech LoRaWAN stack

Fork of LoRaWAN-lib by canuck lehead

Branch:
v4.2.0
Revision:
9:ad93de20d720
Parent:
8:4816c8449bf2
Child:
36:fc9baa35ae1a
--- a/LoRaMac.h	Mon Aug 22 20:30:06 2016 -0400
+++ b/LoRaMac.h	Fri Aug 26 11:32:12 2016 -0400
@@ -156,6 +156,27 @@
  */
 #define JOIN_NB_RETRANSMISSION_DCYCLES 3
 
+/*! 
+ * Join Aggregated duty cycle during the first hour
+ */
+#ifndef JOIN_RETRANSMISSION_DCYCLE1   
+#define JOIN_RETRANSMISSION_DCYCLE1   { 3600, 36000000 } 
+#endif
+
+/*! 
+ * Join Aggregated duty cycle during the next 10 hours 
+ */
+#ifndef JOIN_RETRANSMISSION_DCYCLE2   
+#define JOIN_RETRANSMISSION_DCYCLE2   { 10*3600, 36000000 } 
+#endif
+
+/*! 
+ * Join Aggregated after the first 11 hours
+ */
+#ifndef JOIN_RETRANSMISSION_DCYCLE3   
+#define JOIN_RETRANSMISSION_DCYCLE3   { 24*3600, 8700000 } 
+#endif
+
  /*!
  * LoRaMac internal state
  */
@@ -1466,13 +1487,12 @@
 
 
 /*!
- * LoRaMAC Retransmission  duty cylcle structure
- * Used for Retransmission back-off duty cycle configuration 
+ * LoRaMAC Join Retransmission duty cycle structure
  */
 typedef struct sLoRaMacRetransmissionDCycle
 {
     TimerTime_t period;       // Retransmission period in seconds 
-    TimerTime_t onAirTimeMax; // Max on air time in time units used by Radio.TimeOnAir()
+    TimerTime_t onAirTimeMax; // Max on air time in units returned by Radio.TimeOnAir()
 } LoRaMacRetransmissionDCycle_t;
 
 
@@ -1733,14 +1753,7 @@
  */
  TimerTime_t LoRaMacCalcJoinBackOff( );
 
-/*!
- * \brief   LoRaMacGetMaxAppPayloadLength
- *
- * \retval  The maximum application payload length based on the current datarate 
- *          and repeater support
- *         
- */
-uint8_t LoRaMacGetMaxAppPayloadLength();
+
 
 
 /*! \} defgroup LORAMAC */