Mqtt Tls on boot crash tasmota if broker is not available. #24778
-
|
I have an ESP32 running Tasmota 15.4.0.2. When the broker is unreachable (for any external reason, dns resolution, down service...) at boot, Tasmota logs a TLS connection error (-1002), the MQTT connection fails, and shortly after the device crashes with: 14:59:58.068 MQT: TLS connection error: -1002 What I also noticed is that if the broker is already unavailable after the device has fully booted, Tasmota keeps retrying MQTT normally and does not crash. Relevant details (but also for other esp32 models) Tasmota version: 15.4.0.2 MQTT: TLS enabled Wi-Fi and NTP work correctly The issue appears only when the MQTT broker is missing/unreachable at boot and after some fail going to safeboot status (I disable this when device is in place on production...but I'm not happy :-D ) Can you help me to find any kind of solution? Many thx in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
It fails with local IP too |
Beta Was this translation helpful? Give feedback.
-
|
I cannot reproduce. You need to give more details about your firmware and your configuration. |
Beta Was this translation helpful? Give feedback.
-
|
Fixed in #24798 |
Beta Was this translation helpful? Give feedback.
-
|
Very nice! I can confirm the resolution of issue, simulation is blocking tcp traffic at boot and then reopen (all work great now!): rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 00:00:00.002 HDW: ESP32-D0WD-V3 v3.1 Thank you so much for the quick resolution. I really appreciate how fast this was handled. |
Beta Was this translation helpful? Give feedback.
Fixed in #24798
Thanks for reporting