Browse Source

Send default SSL settings too

rfm69
Maxim Prokhorov 6 years ago
parent
commit
83f848db96
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      code/espurna/mqtt.ino

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

@ -312,8 +312,8 @@ void _mqttWebSocketOnSend(JsonObject& root) {
root["mqttQoS"] = _mqtt_qos;
#if ASYNC_TCP_SSL_ENABLED
root["mqttsslVisible"] = 1;
root["mqttUseSSL"] = getSetting("mqttUseSSL", 0).toInt() == 1;
root["mqttFP"] = getSetting("mqttFP");
root["mqttUseSSL"] = getSetting("mqttUseSSL", MQTT_SSL_ENABLED).toInt() == 1;
root["mqttFP"] = getSetting("mqttFP", MQTT_SSL_FINGERPRINT);
#endif
root["mqttTopic"] = getSetting("mqttTopic", MQTT_TOPIC);
root["mqttUseJson"] = getSetting("mqttUseJson", MQTT_USE_JSON).toInt() == 1;


Loading…
Cancel
Save