Skip to content
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

Merged
merged 13 commits into from
Aug 31, 2023
Merged

update Mqtt Client #1273

merged 13 commits into from
Aug 31, 2023

Conversation

MichaelDvP
Copy link
Contributor

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

@@ -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();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Copy link
Contributor Author

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.

@proddy
Copy link
Contributor

proddy commented Aug 31, 2023

really great work hunting down the root cause for this freeze/restarts Michael.

@proddy proddy merged commit f60197e into emsesp:dev Aug 31, 2023
@proddy
Copy link
Contributor

proddy commented Aug 31, 2023

And @MichaelDvP I think we need to make a v3.6.1 soon, based on what we have in dev

@MichaelDvP
Copy link
Contributor Author

And @MichaelDvP I think we need to make a v3.6.1 soon, based on what we have in dev

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants