|
@ -304,16 +304,16 @@ void _mqttWebSocketOnSend(JsonObject& root) { |
|
|
root["mqttEnabled"] = mqttEnabled(); |
|
|
root["mqttEnabled"] = mqttEnabled(); |
|
|
root["mqttServer"] = getSetting("mqttServer", MQTT_SERVER); |
|
|
root["mqttServer"] = getSetting("mqttServer", MQTT_SERVER); |
|
|
root["mqttPort"] = getSetting("mqttPort", MQTT_PORT); |
|
|
root["mqttPort"] = getSetting("mqttPort", MQTT_PORT); |
|
|
root["mqttUser"] = getSetting("mqttUser"); |
|
|
|
|
|
|
|
|
root["mqttUser"] = getSetting("mqttUser", MQTT_USER); |
|
|
root["mqttClientID"] = getSetting("mqttClientID"); |
|
|
root["mqttClientID"] = getSetting("mqttClientID"); |
|
|
root["mqttPassword"] = getSetting("mqttPassword"); |
|
|
|
|
|
|
|
|
root["mqttPassword"] = getSetting("mqttPassword", MQTT_PASS); |
|
|
root["mqttKeep"] = _mqtt_keepalive; |
|
|
root["mqttKeep"] = _mqtt_keepalive; |
|
|
root["mqttRetain"] = _mqtt_retain; |
|
|
root["mqttRetain"] = _mqtt_retain; |
|
|
root["mqttQoS"] = _mqtt_qos; |
|
|
root["mqttQoS"] = _mqtt_qos; |
|
|
#if ASYNC_TCP_SSL_ENABLED
|
|
|
#if ASYNC_TCP_SSL_ENABLED
|
|
|
root["mqttsslVisible"] = 1; |
|
|
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
|
|
|
#endif
|
|
|
root["mqttTopic"] = getSetting("mqttTopic", MQTT_TOPIC); |
|
|
root["mqttTopic"] = getSetting("mqttTopic", MQTT_TOPIC); |
|
|
root["mqttUseJson"] = getSetting("mqttUseJson", MQTT_USE_JSON).toInt() == 1; |
|
|
root["mqttUseJson"] = getSetting("mqttUseJson", MQTT_USE_JSON).toInt() == 1; |
|
|