-
Notifications
You must be signed in to change notification settings - Fork 419
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
ESP8266 disconnects from MQTT #157
Comments
UPDATE: It turns out that the MFRC522 is still scanning cards as, when I swipe a card, is does a search for it in the Users page. However, it does not publish a message via MQTT. MQTT works again after a reboot but only for a few minutes. I have many devices connected to MQTT but I've never had this issue. |
I've tried again with the latest version and I'm still not getting any messages from MQTT accept from the boot message. |
I am having the same issue on 0.8.2. It is sending the startup MQTT message with IP address etc, then the heartbeat message, but after that there is no more MQTT messages sent. Possibly something broken after the MQTT patch in this update. Also, the heatbeat message is incorrectly title, 'hearthbeat'. |
Let me check this. |
Can you please check event log for MQTT events? Is there any info available there? |
I'm not able to access the event log. I'm stuck on a "Please wait while fetching data..." message. |
What device do you have? And can you also make a backup and clear your flash before flashing the latest firmware? |
I have an ESP8266. What do you mean by
Do you want me to reset it via the UI or to flash the blank file onto my ESP8266. |
Event log shows an MQTT_DISCONNECTED message just after reboot, then no further mention. |
Which ESP8266 board do you have ? ESP8266 alone is not enough to understand what board you have. Clearing flash can be done via on Web UI selecting factory reset or by flashing blank firmware with a tool, but i am afraid that i do not know any flasher for Mac |
@wamboin23 Any connected message? or just DISCONNECTED? |
Just a disconnected message. There is no connected message at any time. 77 | WARN | mqtt | Disconnected from MQTT server | TCP_DISCONNECTED | 2018-09-08-19:52:33 |
I also noticed I now get an 'Enabling WIFI' message in the event log everytime an admin user scans a tag. |
I think it does not take into account "always on" setting when admin card is scanned, so it logs every time when admin card is scanned, i will open a separate issue for this. |
So, I've got a nodemcuv2. |
Just flashed it back to 0.8.1, and can confirm I now have MQTT messages been sent when a user scans a tag. |
So the bug introduced exactly at 0.8.2, interesting the only change is making the credentials global. |
It looks that way. Let me know if I can provide any more info, or test anything. |
Can someone please test this firmware? It has serial debug output, flash and look for messages on serial port. It should work with your 0.8.1 settings. |
Will test later on today. |
.. Seems to be working, at this time.... MQTT messages are been published correctly. Will flash back to current release tomorrow and see if it was just a glitch. Is this serial debug output not normally available in a standard build? |
After posting I did another scan of tag, still reads and turns on relay, but no MQTT messages sent. Confirmed the debug output is now missing the Mqtt publish line. No other errors seen.
|
Any update on getting this bug fixed? Been using this program to control my electronic door lock and now it's unable to be used. Will an update for this MQTT disconnection error be released anytime soon? Would even be willing to pay someone for a release/fix. |
Same problem here on nodemcu please help.... |
What about this they have the same problem |
We do not use pubsubclient |
I was having the same problem running it on a Wemos d1 mini. It was disconnecting from MQTT broker.
} |
For some reason no fix has been found for this error. This is a pretty flawless system if this worked. Not sure how its been this long and a bug fix hasn't been release yet though. |
@benlongjohn I am sorry that this is not fixed yet. It's simply because of i do not have time to setup MQTT test environment. @fivosg What happens when you shutdown MQTT broker and esp-rfid disconnects? |
@omersiar Its okay. I apologize if i sound hostile. I realize you provide this program free of charge. Ill be more than happy to make a small contribution to you if the bug is fixed for all of your hard work and just to say thanks. I do appreciate you taking the time to create this program. |
@omersiar I tried rebooting the mqtt broker. It reconnected as it should.
|
@fivosg nice thank you i will prepare a new release soon™️ |
@omersiar Cant even connect to WiFi anymore unfortunately. Each time I enter my credentials, save, and reboot, it just reverts back to the default AP settings. |
I'm sorry that i can not test it myself because i do not have any esp8266 board right now. I will try get one. |
I tried 0.9.0 firmware. I could connect to WiFi by loading the backup settings( I didn't try to manually enter them). The problem I had was that it defaults to Wiegand hardware and the menu option to change it to MFRC522 was grey and not working. Changed back to my version of firmware and it worked. 1541766367: Socket error on client esp82660405e4, disconnecting. But it connects again. I can't figure out why that happens. All my other MQTT clients never disconnect from the server. |
Configuration file structure is changed and i think we do not handle the differences in the right way. @fivosg Is your version is based on 0.8.2 right? (stable branch) |
@omersiar Yes it's based on the 0.8.2 release |
@fivosg If you flash forV2board.bin the other options are grayed-out, you need to flash generic.bin or debug.bin I think there is no easy way to use old configuration file on 0.9.0. Please erase your flash or format flash via WebUI by selecting factory reset and then flash version 0.9.0 and configure it manually You Need To Clear Browser's Cache or Open ESP-RFID Web UI on Browser's Incognito Mode
Or Windows PC users can use flash tool which is available on /bin folder Make sure you have a user's backup ( do not back up settings ) |
followed the procedure and I have the same problem as @benlongjohn (Each time I enter my credentials, save, and reboot, it just reverts back to the default AP settings). |
Sorry for the any inconvenience, i will prepare a reliable, tested release soon™️ |
i have now flashed the newest version on a NodeMCU and it worked with wifi and the reader, lets see how it goes with MQTT, and stability. |
Please see https://github.com/esprfid/esp-rfid/releases/latest v0.8.3 is a bug fix release. v0.9.0 is not ready yet |
keep getting this on the MQTT on version 0.8.3: (and then it don't connect anymore)
|
First of all, I'd like to thank every single contributor for creating this epic project.
Sadly, I'm having some trouble getting all of this to run smoothly.
A few minutes after every reboot, my MFRC522 stops scanning new cards. However, I can still access the web interface. Rebooting the ESP8266 solves the issue, but a few minutes later the issue arises again.I'm running esp-rfid on an ESP8266 with an MFRC522.If you need any sort of logging, please ask.Please read comment below
The text was updated successfully, but these errors were encountered: