Fix REST server initialization
This commit is contained in:
@@ -7,7 +7,8 @@
|
||||
void protocols_init(void)
|
||||
{
|
||||
date_time_init();
|
||||
rest_init();
|
||||
/* Serve static files from the SPIFFS data partition */
|
||||
rest_init("/data");
|
||||
//mqtt_init();
|
||||
//modbus_tcp_init();
|
||||
}
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "esp_log.h"
|
||||
#include "esp_vfs.h"
|
||||
#include "cJSON.h"
|
||||
#include "rest.h"
|
||||
|
||||
static const char *REST_TAG = "esp-rest";
|
||||
#define REST_CHECK(a, str, goto_tag, ...) \
|
||||
|
||||
Reference in New Issue
Block a user