Aloha implementation of LoRa technology

Dependencies:   SX1276Lib mbed

Fork of SX1276PingPong by Semtech

Revision:
16:c3c6b13c3c42
Parent:
15:f790f35839db
--- a/Aloha.h	Tue May 31 09:52:21 2016 +0000
+++ b/Aloha.h	Wed Jun 08 22:15:29 2016 +0000
@@ -3,7 +3,7 @@
 
 #include "mbed.h"
 
-#define ALOHA_MAX_ATTEMPT 3
+#define ALOHA_MAX_ATTEMPT 5
 
 class Aloha
 {
@@ -13,12 +13,13 @@
         IDLE = 0,
         PENDING,
         RETRANSMIT,
-        EXPIRED
+        EXPIRED,
+        ACK_RESP
     } AlohaState_t;
     
 public:
     Timeout AlohaAckTimeout;
-    uint32_t delay;
+    float delay;
     int attempts;
     
     AlohaState_t state;