I did a search but was not able to find a similar question.
I an still very new to home assistant and this is my first shot at any nodeMCU ESP-8266 project
I have set up mosquito in Hass.io and have uploaded the script to a Node MCU ESP 8266 to control my WS 2811 Led lights.
The Node MCU connects to my WiFi no problem and then attempts to connect to the MQTT service. It says it is connected in the log for mosquito in Hass.io and on the serial monitor for the nodeMCU board. but then it attempts connection right away.
Sometimes it does this a hand full of times before it has a sable connection sometimes it can go on for 20 minutes. would this be a problem with my mosquito setup, or node MCU board or my script.
PubSubClient.cpp - A simple client for MQTT.
Nicholas O’Leary http://knolleary.net
as it seems better at keeping a connection but it might be that you are too far away or the antenna is damaged on the board. If you use the one above you will have to change the code to match, it’s not plug and play