mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-05 17:07:42 +00:00
Fix Arduino compile errors
Fix Arduino compile errors
This commit is contained in:
parent
8da743f98e
commit
2e7c72724d
@ -20,11 +20,13 @@
|
|||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define LWIP_INTERNAL
|
|
||||||
|
|
||||||
#include "my_user_config.h"
|
#include "my_user_config.h"
|
||||||
#ifdef USE_MQTT_TLS
|
#ifdef USE_MQTT_TLS
|
||||||
|
|
||||||
|
#define DEBUG_TLS
|
||||||
|
|
||||||
|
#define LWIP_INTERNAL
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
@ -46,8 +48,7 @@ extern "C" {
|
|||||||
#include <include/ClientContext.h>
|
#include <include/ClientContext.h>
|
||||||
#include "c_types.h"
|
#include "c_types.h"
|
||||||
|
|
||||||
#define DEBUG_TLS
|
#include <core_version.h>
|
||||||
|
|
||||||
#ifndef ARDUINO_ESP8266_RELEASE_2_5_2
|
#ifndef ARDUINO_ESP8266_RELEASE_2_5_2
|
||||||
#undef DEBUG_TLS
|
#undef DEBUG_TLS
|
||||||
#endif
|
#endif
|
||||||
|
@ -263,6 +263,7 @@
|
|||||||
#define HOME_ASSISTANT_DISCOVERY_PREFIX "homeassistant" // Home Assistant discovery prefix
|
#define HOME_ASSISTANT_DISCOVERY_PREFIX "homeassistant" // Home Assistant discovery prefix
|
||||||
|
|
||||||
// -- MQTT - TLS - AWS IoT ------------------------
|
// -- 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 // 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_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)
|
//#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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user