MQTT dashboard nitpicks

This commit is contained in:
Sergey Lyubka committed 2023-12-16 19:57:18 +00:00
1 parent 79e138ef28
commit bbd27a0a9c
6 files changed
+401 -388

No files matched your search

+5 -9
View File
@@ -8,25 +8,21 @@
extern "C" {
#endif
#ifndef MQTT_DASHBOARD
#define MQTT_DASHBOARD 1
#endif
#define DEVICE_ID_LEN 10
#define MQTT_KEEP_ALIVE_INTERVAL 60
#define MQTT_KEEPALIVE_SEC 60
#define MQTT_SERVER_URL "mqtt://broker.hivemq.com:1883"
#define MQTT_ROOT_TOPIC "topic_mg_device"
#define MQTT_ROOT_TOPIC "mg_mqtt_dashboard"
#define NUM_PINS 30
extern char *g_url;
extern char *g_device_id;
extern char *g_root_topic;
void web_init(struct mg_mgr *mgr);
void web_destroy();
void web_free(void);
void hal_gpio_write(int pin, bool status);
bool hal_gpio_write(int pin, bool status);
bool hal_gpio_read(int pin);
int hal_led_pin(void);
#ifdef __cplusplus
}