From 415fe8988e579c3185c7ba074733859506c1c7c3 Mon Sep 17 00:00:00 2001
From: Guo Wenxue <guowenxue@gmail.com>
Date: Sat, 03 Aug 2019 22:50:00 +0800
Subject: [PATCH] update mqttd program, add buzzer control and test ok

---
 mqttd/main.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/mqttd/main.c b/mqttd/main.c
index 488c7e7..f021966 100644
--- a/mqttd/main.c
+++ b/mqttd/main.c
@@ -464,7 +464,15 @@
             {
                 if( strcasestr(value, "on") )
                 {
-                    log_nrml("Turn buzzer on [%d] times\n", hwconf->beep_times);
+		    turn_passive_beep(ON, BEEP_FREQ);
+                }
+		else if( strcasestr(value, "off") )
+                {
+		    turn_passive_beep(OFF, BEEP_FREQ);
+                }
+		else if( strcasestr(value, "music") )
+                { 
+		    play_little_star();
                 }
             }
 

--
Gitblit v1.9.1