Skip to content

fix: dont send mqtt status twice during single activity#54

Merged
lanrat merged 1 commit intolanrat:mainfrom
pimlie:fix-dont-send-mqtt-status-twice
Sep 12, 2024
Merged

fix: dont send mqtt status twice during single activity#54
lanrat merged 1 commit intolanrat:mainfrom
pimlie:fix-dont-send-mqtt-status-twice

Conversation

@pimlie
Copy link
Copy Markdown
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
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