letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.28k stars 2.22k forks source link

mega_20190116 MQTT with no user/password doesn't connect #2260

Open erikbent opened 5 years ago

erikbent commented 5 years ago

I flashed the following firmware to a Nodemcu: ESP_Easy_mega-20190116_normal_ESP8266_4096.bin

If I enter a controller with Domoticz MQTT it is only working with a user/password. I tried it without user/password first because my MQTT server does not need a password (it's on my internal network). With mosquitto_pub or node-red I can send items to the MQTT server without a user/password.

I receive the following message if I don't enter a user/password: 43367: MQTT : Intentional reconnect 43444: MQTT : Failed to connect to broker

When I enter the user/password into the controller the message disappears and the messages are send to MQTT server. The other MQTT controllers have the same problem.

TD-er commented 5 years ago

Can you double-check the fields for passwd/username are completely empty? So not even a space.

erikbent commented 5 years ago

I checked this. There is nothing in the user and password entry box.

TD-er commented 5 years ago

Is anybody else facing the same issue? My setup here also doesn't use a password and I haven't seen any issues yet.

Did you also test other builds before?

erikbent commented 5 years ago

I just tried ESP_Easy_mega-20190121_test_core_250_beta_ESP8266_4096_VCC.bin. Initially there is a connection with MQTT because of the given user/password. After removing the user/password and a reboot there is no connection with MQTT. If I only remove the user/password and no reboot the messages keep coming.