mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 11:44:31 +02:00
esp_local_ctrl: Fix header inclusion
- Included `sdkconfig.h` and HTTP/S server based headers explicitly
This commit is contained in:
@@ -10,6 +10,12 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <sdkconfig.h>
|
||||||
|
#ifdef CONFIG_ESP_HTTPS_SERVER_ENABLE
|
||||||
|
#include <esp_https_server.h>
|
||||||
|
#else
|
||||||
|
#include <esp_http_server.h>
|
||||||
|
#endif
|
||||||
#include <protocomm.h>
|
#include <protocomm.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -20,11 +20,7 @@
|
|||||||
#include <esp_log.h>
|
#include <esp_log.h>
|
||||||
#include <esp_timer.h>
|
#include <esp_timer.h>
|
||||||
#include <esp_local_ctrl.h>
|
#include <esp_local_ctrl.h>
|
||||||
#ifdef CONFIG_ESP_HTTPS_SERVER_ENABLE
|
|
||||||
#include <esp_https_server.h>
|
|
||||||
#else
|
|
||||||
#include <esp_http_server.h>
|
|
||||||
#endif
|
|
||||||
static const char *TAG = "control";
|
static const char *TAG = "control";
|
||||||
|
|
||||||
#define SERVICE_NAME "my_esp_ctrl_device"
|
#define SERVICE_NAME "my_esp_ctrl_device"
|
||||||
|
Reference in New Issue
Block a user