mirror of https://github.com/arendst/Tasmota.git
Don't try to connect to TLS with Tasmota-minimal
This commit is contained in:
parent
5421c608cd
commit
750d35283b
|
@ -603,12 +603,19 @@ void MqttReconnect(void)
|
|||
UdpDisconnect();
|
||||
#endif // USE_EMULATION
|
||||
|
||||
AddLog_P(LOG_LEVEL_INFO, S_LOG_MQTT, PSTR(D_ATTEMPTING_CONNECTION));
|
||||
|
||||
Mqtt.connected = false;
|
||||
Mqtt.retry_counter = Settings.mqtt_retry;
|
||||
global_state.mqtt_down = 1;
|
||||
|
||||
#ifdef FIRMWARE_MINIMAL
|
||||
// Don't try to connect if MQTT requires TLS but TLS is not supported
|
||||
if (Settings.flag4.mqtt_tls) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
AddLog_P(LOG_LEVEL_INFO, S_LOG_MQTT, PSTR(D_ATTEMPTING_CONNECTION));
|
||||
|
||||
char *mqtt_user = nullptr;
|
||||
char *mqtt_pwd = nullptr;
|
||||
if (strlen(SettingsText(SET_MQTT_USER))) {
|
||||
|
|
Loading…
Reference in New Issue