Browse Source

Fix bad reference to BAD_TLS_FINGERPRINT with no SSL support

fastled
Xose Pérez 7 years ago
parent
commit
fa35049203
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      code/espurna/mqtt.ino

+ 2
- 0
code/espurna/mqtt.ino View File

@ -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) {


Loading…
Cancel
Save