From 47579e3790b1ee5a1ad2ce35ea6028cd9ddf6ea0 Mon Sep 17 00:00:00 2001 From: GuoWenxue <“guowenxue@gmail.com”> Date: Fri, 29 Apr 2022 09:23:27 +0800 Subject: [PATCH] update client_main.c to use packet_segmented_pack --- mqttd/hal/hal.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/mqttd/hal/hal.h b/mqttd/hal/hal.h index 775885b..53e0826 100644 --- a/mqttd/hal/hal.h +++ b/mqttd/hal/hal.h @@ -21,6 +21,8 @@ #include "ds18b20.h" #include "sht20.h" +#include "tsl2561.h" +#include "beep.h" #define OFF 0 #define ON 1 @@ -37,5 +39,11 @@ extern int hal_init(hwconf_t *conf); extern void turn_relay(int cmd); extern int turn_led(int which, int cmd); +extern void init_infrared(int pin); +extern void turn_beep(int times); + +/* jitter_time: cancel jitter interval time + * Return value: 1(HIGH): Sombody detected 0(LOW): Nobody detected */ +extern int infrared_detect(int jitter_time); #endif /* ----- #ifndef _HAL_H_ ----- */ -- Gitblit v1.9.1