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

Avoid sending pings when we have traffic #463

Merged
merged 2 commits into from
Jul 11, 2023
Merged

Avoid sending pings when we have traffic #463

merged 2 commits into from
Jul 11, 2023

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Jul 10, 2023

This is the same optimization that the ESPHome side has

https://github.com/esphome/esphome/blob/ddde1ee31ef96476c7a7d1c8b8fe306aa4d2e503/esphome/components/api/api_connection.cpp#L119

The goal is to keep network traffic to a minimum and avoid radio time when not needed

@bdraco
Copy link
Member Author

bdraco commented Jul 10, 2023

Killed power and made sure the devices still go unavailable and recover

@bdraco bdraco marked this pull request as ready for review July 11, 2023 07:00
@bdraco bdraco merged commit 6b0d841 into main Jul 11, 2023
7 checks passed
@bdraco bdraco deleted the no_ping_if_recent branch July 11, 2023 07:00
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.

1 participant