Fix Arduino compile errors

Fix Arduino compile errors
This commit is contained in:
Theo Arends 2019-06-11 17:48:53 +02:00
parent 8da743f98e
commit 2e7c72724d
2 changed files with 6 additions and 4 deletions

View File

@ -20,11 +20,13 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#define LWIP_INTERNAL
#include "my_user_config.h"
#ifdef USE_MQTT_TLS
#define DEBUG_TLS
#define LWIP_INTERNAL
#include <list>
#include <errno.h>
#include <algorithm>
@ -46,8 +48,7 @@ extern "C" {
#include <include/ClientContext.h>
#include "c_types.h"
#define DEBUG_TLS
#include <core_version.h>
#ifndef ARDUINO_ESP8266_RELEASE_2_5_2
#undef DEBUG_TLS
#endif

View File

@ -263,6 +263,7 @@
#define HOME_ASSISTANT_DISCOVERY_PREFIX "homeassistant" // Home Assistant discovery prefix
// -- MQTT - TLS - AWS IoT ------------------------
// Using TLS starting with version v6.5.0.16 compilation will only work using platformio. Arduino IDE will fail.
//#define USE_MQTT_TLS // Use TLS for MQTT connection (+56.7k code, +6.0k mem and +6.6k additional during connection handshake)
//#define USE_MQTT_TLS_CA_CERT // Force full CA validation instead of fingerprints, uses more memory and slower, but simpler to use
//#define USE_MQTT_AWS_IOT // Enable MQTT for AWS IoT - requires a private key (+56.7k code, +6.0k mem and +6.6k additional during connection handshake)