From d5ad51c46446e261d964515ca3a6bddb8559e014 Mon Sep 17 00:00:00 2001
From: Guo Wenxue <guowenxue@gmail.com>
Date: Wed, 26 Jun 2019 01:37:52 +0800
Subject: [PATCH] update mqttd, modify default Qos to 0

---
 mqttd/etc/conf.h |    4 ++--
 mqttd/hal/hal.h  |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/mqttd/etc/conf.h b/mqttd/etc/conf.h
index 8c6fac2..f3c7965 100644
--- a/mqttd/etc/conf.h
+++ b/mqttd/etc/conf.h
@@ -19,8 +19,8 @@
 #define DEF_BROKER_USERNAME        "lingyun"
 #define DEF_BROKER_PASSWD          "lingyun-emb"
 
-#define DEF_PUBQOS                 2
-#define DEF_PUBINTERVAL            600 /* 10 minitues */
+#define DEF_PUBQOS                 0
+#define DEF_PUBINTERVAL            3 /* 3 seconds */
 
 #define DEF_SUBQOS                 0
 
diff --git a/mqttd/hal/hal.h b/mqttd/hal/hal.h
index ca14438..9a1056c 100644
--- a/mqttd/hal/hal.h
+++ b/mqttd/hal/hal.h
@@ -17,6 +17,7 @@
 #include "lylib/logger.h"
 
 #include "led.h"
+#include "relay.h"
 #include "ds18b20.h"
 #include "sht20.h"
 

--
Gitblit v1.9.1