27 lines
539 B
C
27 lines
539 B
C
#include <stdio.h>
|
|
#include <stdbool.h>
|
|
#include <unistd.h>
|
|
#include "esp_system.h"
|
|
#include "sdkconfig.h"
|
|
|
|
#include "SystemConfiguration.h"
|
|
#include "HTTPServer.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 app_main(void)
|
|
{
|
|
|
|
WebGuiAppInit();
|
|
regHTTPPrintCustom(&HTTPPrintCustom);
|
|
regAfterPostHandlerCustom(&AfterPostHandlerCustom);
|
|
|
|
while (true)
|
|
{
|
|
sleep(1);
|
|
}
|
|
}
|