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: dont send mqtt status twice during single activity #54

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

pimlie
Copy link
Contributor

@pimlie pimlie commented Sep 2, 2024

Because mqttRun was true by default, it immediately sent a mqtt update when connecting to mqtt. But then after executing the activity (which homeplate always does after booting/waking up), it also sent a mqtt status which meant that mqtt data got updated twice every time the homeplate wakes up.

Not having to sent the mqtt data twice during a single wake up could improve battery life

@lanrat lanrat merged commit 1270318 into lanrat:main Sep 12, 2024
3 checks passed
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