-
Notifications
You must be signed in to change notification settings - Fork 140
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
Malformed UTF-8 #128
Comments
Is this also an issue with the PubSubClient library directly? This library uses it for MQTT handling so I would assume this might be an issue over there. Looking at your code I have some completely unrelated comment: I do like to use defines for strings as string concats are at compile time and a bit easier to write and handle compared to the #define BOARD_NUMBER "071"
#define CLIENT_NAME "Client" BOARD_NUMBER
EspMQTTClient client(
…
CLIENT_NAME,
…
); |
i had a impementation before just using the pubsubclient lib. There i didn´t get this error :-/ Ok thanks for this hint i will change that. |
you can enable |
ok i did that before but its not showing the broker connection stuff. Only the publish and subscribe messages. |
So interesting. The issue occurs for many hours and then suddenly stops. Then MQTT is perfectly working... After some time issue again and after some time suddenly stops... |
I am running into similar issues, I am still narrowing down the issue but I see the same issue even if I don't construct the string. client name ex: "sperryfreak01" -- I still get UTF 8 errors. I think it has to do with some kind of memory being freed while the library is still pointed at it. It only started for me when I switched over to the steps in #26 This code
Nets me these messages Debug Serial:
Mosquito:
|
Well I figured it out, I was using "strings" (my python riddled brain isn't sure what is what anymore) as const char* and it was causing problems. After converting everything to char var[] or char var[x] it all started working flawlessly. |
Description of the problem
From time to time when the esp restarts or reconnects to wifi i get the following message on mqtt broker when the client wants to connect. Seems that the client id is somehow malformed !?
This is taking some time with this error and suddenly the error stops and everything is working fine.
Then suddently the problem again occurs
Versions
Hardware
C++ code
The text was updated successfully, but these errors were encountered: