-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
update Mqtt Client #1273
update Mqtt Client #1273
Conversation
@@ -166,9 +166,9 @@ void WebStatusService::webStatusService(AsyncWebServerRequest * request) { | |||
if (Mqtt::enabled()) { | |||
statJson = statsJson.createNestedObject(); | |||
statJson["id"] = 5; | |||
statJson["s"] = Mqtt::publish_count(); | |||
statJson["s"] = Mqtt::publish_count() - Mqtt::publish_fails(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
statJson["s"] is for success, publish_count() is all messages. Same correction for quality calculation.
really great work hunting down the root cause for this freeze/restarts Michael. |
And @MichaelDvP I think we need to make a v3.6.1 soon, based on what we have in dev |
Yes. |
Bert has fixed the issues in mqtt. But i leave the default mem level in the library and added a check in mqtt.c. Let's hope that this was the issue from #1264
#1271 is included