[SOLVED] MQTT - Failed to connect to broker
Posted: 09 Aug 2019, 12:53
Up to a couple weeks ago, all my ESPEasy devices were working fine but suddenly they are all failing to connect to my local MQTT brokers (using either the hostname or the IP) with the error:
15651: MQTT : Intentional reconnect
15713: MQTT : Failed to connect to broker
All devices work fine when connecting to a cloud broker. The version of ESPEasy doesn't seem to matter, it happens using
mega-20190805,
mega-20190106,
mega-20181026
What is strange is that the broker (mqttpizw.local) works in all other cases and even works if I take a WeMos running ESPEasy (which won't connect) and flash it with an Arduino sketch doing MQTT. Here are the things that work
Pi -> MQTT -> Pi
------------------------
NR on rosemarypi ——> mqttpizw.local ——> NR (on mac) works
WeMos (ESPEasy) -> MQTT -> Pi
--------------------------------
wemos42 ——> beebotte ——> NR (on mac) works
wemos42 ——> mqttpizw.local ——> NR (on mac) FAILS
wemos42 ——> 192.168.48.102 (mqttpizw.local) ——> NR (on mac) FAILS
wemos33 ——> mqttpizw.local ——> NR (on mac) FAILS
NOTE: wemos33 was now flashed with an Arduino sketch using MQTT pointing at 192.168.48.102
WeMos (arduino) -> MQTT -> Pi
————————————————
wemos33 ——> 192.168.48.102 (mqttpizw.local) ——> NR (on mac) works
I thought it might have been a firmware update to my apple base station, but I downgradded the firmware and still have the problem.
Any thoughts/suggestions.
15651: MQTT : Intentional reconnect
15713: MQTT : Failed to connect to broker
All devices work fine when connecting to a cloud broker. The version of ESPEasy doesn't seem to matter, it happens using
mega-20190805,
mega-20190106,
mega-20181026
What is strange is that the broker (mqttpizw.local) works in all other cases and even works if I take a WeMos running ESPEasy (which won't connect) and flash it with an Arduino sketch doing MQTT. Here are the things that work
Pi -> MQTT -> Pi
------------------------
NR on rosemarypi ——> mqttpizw.local ——> NR (on mac) works
WeMos (ESPEasy) -> MQTT -> Pi
--------------------------------
wemos42 ——> beebotte ——> NR (on mac) works
wemos42 ——> mqttpizw.local ——> NR (on mac) FAILS
wemos42 ——> 192.168.48.102 (mqttpizw.local) ——> NR (on mac) FAILS
wemos33 ——> mqttpizw.local ——> NR (on mac) FAILS
NOTE: wemos33 was now flashed with an Arduino sketch using MQTT pointing at 192.168.48.102
WeMos (arduino) -> MQTT -> Pi
————————————————
wemos33 ——> 192.168.48.102 (mqttpizw.local) ——> NR (on mac) works
I thought it might have been a firmware update to my apple base station, but I downgradded the firmware and still have the problem.
Any thoughts/suggestions.