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

Fix slow sync when using IR or wall remote #210

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dzungpv
Copy link
Contributor

@dzungpv dzungpv commented Dec 13, 2023

With this change and enable fast sync, time sync speed up by 2x.
Expose wantedSettings and lastWanted make mqtt control over Home Assistant more stable, see: https://github.com/dzungpv/mitsubishi2MQTT

Enable fastSync mode to speed up settings and status sync time by 2x.
@sethkinast
Copy link
Contributor

Your code formatting doesn't match the existing formatting; you should fix that before asking to merge. This repo uses K&R style.

src/HeatPump.cpp Outdated
return wantedSettings;
}

unsigned long HeatPump::getLastWanted()
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is this used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You can check it here in my project: https://github.com/dzungpv/mitsubishi2MQTT/blob/9c2bcdda142fff1290fbef9550f4f9214b3f510f/main/main.cpp#L2051. Code have been run on esp8266 to 60 days without any reboot.

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.

None yet

2 participants