From bce37d77a355a533f9b40b37a166adf2fa810540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Fri, 25 Aug 2017 16:51:46 +0200 Subject: [PATCH] Info about SSL support --- code/espurna/config/general.h | 15 ++++++++++----- code/platformio.ini | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/code/espurna/config/general.h b/code/espurna/config/general.h index 8137b86c..e581d887 100644 --- a/code/espurna/config/general.h +++ b/code/espurna/config/general.h @@ -242,16 +242,16 @@ PROGMEM const char* const custom_reset_string[] = { // ----------------------------------------------------------------------------- #ifndef WEB_SUPPORT -#define WEB_SUPPORT 1 // This enables web support (http, api) +#define WEB_SUPPORT 1 // Enable web support (http, api) #endif #ifndef WEB_EMBEDDED -#define WEB_EMBEDDED 1 // This option builds the firmware with the web interface embedded. +#define WEB_EMBEDDED 1 // Build the firmware with the web interface embedded in #endif -// This is not working at the moment -// Requires ASYNC_TCP_SSL_ENABLED to 1 -#define WEB_USE_SSL 0 // Use HTTPS web interface +// This is not working at the moment!! +// Requires ASYNC_TCP_SSL_ENABLED to 1 and ESP8266 Arduino Core staging version. +#define WEB_SSL_ENABLED 0 // Use HTTPS web interface #define WEB_MODE_NORMAL 0 #define WEB_MODE_PASSWORD 1 @@ -314,6 +314,11 @@ PROGMEM const char* const custom_reset_string[] = { #define MQTT_USE_ASYNC 1 // Use AysncMQTTClient (1) or PubSubClient (0) #endif +// MQTT OVER SSL +// Using MQTT over SSL works pretty well but generates problems with the web interface. +// It could be a good idea to use it in conjuntion with WEB_SUPPORT=0. +// Requires ASYNC_TCP_SSL_ENABLED to 1 and ESP8266 Arduino Core staging version. +// Right now only available when MQTT_USE_ASYNC=1 (default value). // You will need the fingerprint for your MQTT server, example for CloudMQTT: // $ echo -n | openssl s_client -connect m11.cloudmqtt.com:24055 > cloudmqtt.pem // $ openssl x509 -noout -in cloudmqtt.pem -fingerprint -sha1 diff --git a/code/platformio.ini b/code/platformio.ini index 02e53be1..011924d1 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -65,7 +65,7 @@ upload_port = "192.168.4.1" upload_flags = --auth=fibonacci --port 8266 [env:nodemcu-lolin] -platform = espressif8266_stage +platform = espressif8266 framework = arduino board = nodemcuv2 lib_deps = ${common.lib_deps}