From aed475c7a57e329a3e90cce56d00ca997f519cda Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Sun, 02 May 2021 19:58:34 +0800 Subject: [PATCH] update iotd 3rdlib build shell script for cjson --- 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