From 924321b7da1a60543605bcfe7c67f87db516a787 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 25 Jun 2019 22:38:12 +0200 Subject: [PATCH] fix mqtt tls with BearSSL --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 64fef89..4375aa2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -352,6 +352,7 @@ void ICACHE_FLASH_ATTR sendValues() { WiFiClientSecure net; MQTTClient mqttclient(MQTT_MAX_PACKET_SIZE); + net.setInsecure(); mqttclient.begin(mqttserver, 8883, net); int tries = 0; constexpr unsigned int retry_delay = 500; @@ -389,6 +390,7 @@ void ICACHE_FLASH_ATTR sendValues() { } loop_count++; + net.stop(); WiFi.disconnect(); WiFi.mode(WIFI_OFF); WiFi.forceSleepBegin();