From fa3504920330fe754d8de271c7d2003b45304e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Wed, 16 Aug 2017 22:41:45 +0200 Subject: [PATCH] Fix bad reference to BAD_TLS_FINGERPRINT with no SSL support --- code/espurna/mqtt.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/espurna/mqtt.ino b/code/espurna/mqtt.ino index 151fcd64..8aa9de83 100644 --- a/code/espurna/mqtt.ino +++ b/code/espurna/mqtt.ino @@ -342,9 +342,11 @@ void mqttSetup() { if (reason == AsyncMqttClientDisconnectReason::MQTT_NOT_AUTHORIZED) { DEBUG_MSG_P(PSTR("[MQTT] Not authorized\n")); } + #if ASYNC_TCP_SSL_ENABLED if (reason == AsyncMqttClientDisconnectReason::TLS_BAD_FINGERPRINT) { DEBUG_MSG_P(PSTR("[MQTT] Bad fingerprint\n")); } + #endif _mqttOnDisconnect(); }); mqtt.onMessage([](char* topic, char* payload, AsyncMqttClientMessageProperties properties, size_t len, size_t index, size_t total) {