Add lightswitch to this firmware
This commit is contained in:
19
include/helper.h
Normal file
19
include/helper.h
Normal file
@ -0,0 +1,19 @@
|
||||
#ifndef __HELPER_H
|
||||
#define __HELPER_H
|
||||
|
||||
#include "mgos.h"
|
||||
#include <ctype.h>
|
||||
#include <fnmatch.h>
|
||||
|
||||
#define MIN_GPIO 0
|
||||
#define MAX_GPIO 16
|
||||
#define MQTT_TOPIC_PREFIX ""
|
||||
#define MQTT_TOPIC_BROADCAST_CMD "/mongoose/broadcast"
|
||||
#define MQTT_TOPIC_BROADCAST_STAT "/mongoose/broadcast/stat"
|
||||
|
||||
#define ERR_GPIO_INVALID 255
|
||||
|
||||
bool is_button_flag_valid(const char *flag);
|
||||
bool is_relay_flag_valid(const char *flag);
|
||||
|
||||
#endif // __HELPER_H
|
Reference in New Issue
Block a user