forked from espressif/esp-idf
Add sdkconfig.h to protocol/https* examples
This commit is contained in:
@@ -22,6 +22,8 @@
|
|||||||
#include "nvs_flash.h"
|
#include "nvs_flash.h"
|
||||||
#include "protocol_examples_common.h"
|
#include "protocol_examples_common.h"
|
||||||
#include "esp_netif.h"
|
#include "esp_netif.h"
|
||||||
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
#if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE
|
#if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE
|
||||||
#include "esp_crt_bundle.h"
|
#include "esp_crt_bundle.h"
|
||||||
#endif
|
#endif
|
||||||
|
@@ -21,6 +21,7 @@
|
|||||||
#include "lwip/sys.h"
|
#include "lwip/sys.h"
|
||||||
#include "lwip/netdb.h"
|
#include "lwip/netdb.h"
|
||||||
#include "lwip/dns.h"
|
#include "lwip/dns.h"
|
||||||
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
/* Constants that aren't configurable in menuconfig */
|
/* Constants that aren't configurable in menuconfig */
|
||||||
#define WEB_SERVER "example.com"
|
#define WEB_SERVER "example.com"
|
||||||
|
@@ -38,6 +38,7 @@
|
|||||||
#include "lwip/dns.h"
|
#include "lwip/dns.h"
|
||||||
|
|
||||||
#include "esp_tls.h"
|
#include "esp_tls.h"
|
||||||
|
#include "sdkconfig.h"
|
||||||
#if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE
|
#if CONFIG_MBEDTLS_CERTIFICATE_BUNDLE
|
||||||
#include "esp_crt_bundle.h"
|
#include "esp_crt_bundle.h"
|
||||||
#endif
|
#endif
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include <esp_https_server.h>
|
#include <esp_https_server.h>
|
||||||
#include "esp_tls.h"
|
#include "esp_tls.h"
|
||||||
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
/* A simple example that demonstrates how to create GET and POST
|
/* A simple example that demonstrates how to create GET and POST
|
||||||
* handlers and start an HTTPS server.
|
* handlers and start an HTTPS server.
|
||||||
|
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
#include <esp_https_server.h>
|
#include <esp_https_server.h>
|
||||||
#include "keep_alive.h"
|
#include "keep_alive.h"
|
||||||
|
#include "sdkconfig.h"
|
||||||
|
|
||||||
#if !CONFIG_HTTPD_WS_SUPPORT
|
#if !CONFIG_HTTPD_WS_SUPPORT
|
||||||
#error This example cannot be used unless HTTPD_WS_SUPPORT is enabled in esp-http-server component configuration
|
#error This example cannot be used unless HTTPD_WS_SUPPORT is enabled in esp-http-server component configuration
|
||||||
|
Reference in New Issue
Block a user