#include #include #include #include "esp_system.h" #include "sdkconfig.h" #include "SystemConfiguration.h" #include "HTTPServer.h" #include "MQTT.h" #define MANUAL_RESET 0 int HTTPPrintCustom(httpd_req_t *req, char *buf, char *var); HTTP_IO_RESULT AfterPostHandlerCustom(httpd_req_t *req, const char *filename, char *PostData); void UserMQTTEventHndlr(void *handler_args, esp_event_base_t base, int32_t event_id, void *event_data); void app_main(void) { regHTTPPrintCustom(&HTTPPrintCustom); regAfterPostHandlerCustom(&AfterPostHandlerCustom); regUserEventHandler(&UserMQTTEventHndlr); WebGuiAppInit(); while (true) { sleep(1); } }