initial publish

Dependencies:   mbed-rtos mbed

Revision:
1:f5b145be9d8e
Parent:
0:31e47b639d0f
--- a/payload.h	Wed May 18 08:37:47 2016 +0000
+++ b/payload.h	Thu Jun 02 11:44:51 2016 +0000
@@ -3,10 +3,18 @@
 // on: 20160519
 #include <Semaphore.h>
 
-#pragma pack(push, 1)
+enum NodeStates { development = 0, preproduction = 1, production = 2};
+#define NODE_ID                     0x01
+#define NODE_STATE           development
 
-#define NODE_ID    0x01
+#define CONTACT_NOACK_MIN          10000
+#undef  CONTACT_NOACK_MAX   
+#define CONTACT_ACK_MIN          3600000
+#define CONTACT_ACK_MAX          3600000
 
+#define CONTACT_MAX_TOTAL_PER_DAY    100
+
+#pragma pack(push, 1)
 typedef struct payloadvalues{
   unsigned char node_id;
   unsigned char reed_sensor_value: 1;