-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lost mqtt communication after 3-4 hours #348
Comments
Also experiencing the same issue with the latest version. MQTT suddenly just stops working until a reboot |
Can you guys collect events regarding the MQTT on event logs ? |
Version 1.3.3 can confirm, but the time until disconnect is much longer. Only MQTT Disconnect, no WiFi Disconnection. Velleman RFID Reader and Joy-It ESP8266 Dev Kitv2 4MB Flash. 180seconds |
i can also confirm this. No mqtt messages after 3-4 hours |
Confirmed on several different boards. Nothing in event log regarding MQTT. |
The short simple fix should be to add one more connection. |
Maybe your wifi gets reconnected and mqtt doesn't reconnect. there is a like in wifi.esp which is commented out and it says:
Which is supposed to reconnect once the wifi is back on. |
The same problem here. |
did not work in dev-tree 1.3.7 for me. |
I belive the problem is the timing. You are trying to reconnect when Wifi is connected in wifi.esp: void onWifiConnect(const WiFiEventStationModeConnected &event) ... but that does not mean a valid IP is given. I added a function and a handler in 1.3.3:
main.cpp:
I only tested it once by disableing wifi on my router, but it was the first time the mqtt connection recovered with this little "patch". |
Integrated as part of issue #374 on dev. |
In wich Version is the mqtt disconnect fixe include? I have test Version 1.3.1, Version 1.3.3, Version 1.3.5 and in all Version, i have the mqtt disconnect Problems. |
Do you want a precompiled version? Until now the fix is only for the source code. |
Yes please 😅 |
Can you try this please: |
Thanks for the Version, i have test this Version, but i have problems with the mqtt communication. When i reboot the System, the MQTT Server arrived a json Message with the Reboot info, but when i scan a rfid Card, the MQTT Server became no Message. |
It does work here. My setup is a bit special, but what you see here ist the MQTT communication between the esp-rfid and the mosquitto MQTT-Broker on mastermind: |
Ok thanks |
My Setting of the ESP { Acess Data will not send to the MQTT Server an this is my Problem. The Relay of the bord ist toggle when the card is read and have access |
Here are my Settings and it still works. Also mosquitto is receiving messages `{ "hardware": {
}, "general": { "mqtt": { "ntp": {
|
Hi there i have also the mqtt problem, I'm not a king for editing and fix the issue i don't understand realy how , some people can explain or give a link for the how to? Thanks for your help |
I saw something interessting: After I disabled the PiHole and the router does the DNS again, the MQTT never stopped working again (since 4 weeks). I can't say why, but it looks like that the ESP isn't compatible with PiHole |
In the Moreover I've recently fixed a bug with reading MQTT messages: #475 that was causing to me severe issues. If you still have problems on the |
I'll close this for now as I didn't have any feedback and I think it's now fixed. But if anyone has any issue, please reopen. |
hello . i get the esp-rfid to work . it work good maybe 3-4 hours ,, and then the mqtt communication from the unit stop sending. it restarts sending when i restart the unit . have sombody a solution to this or know why i have this issue?
the firmvare i use is 1.3.1
the reader: rc-522
card: wemos d1 mini
/best regards pehr
The text was updated successfully, but these errors were encountered: