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 BLE writes timing out #298

Merged
merged 1 commit into from Nov 6, 2022
Merged

Fix BLE writes timing out #298

merged 1 commit into from Nov 6, 2022

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Nov 6, 2022

The GATT writes were not using the DEFAULT_BLE_TIMEOUT. When a HomeKit device pairs it can take a while to respond due to the encryption. We need to wait at least 30s

Also logs how long the timeout was when we raise

The GATT writes were not using the DEFAULT_BLE_TIMEOUT.
When a HomeKit device pairs it can take a while to respond
due to the encryption. We need to wait at least 30s

Also logs how long the timeout was when we raise
@bdraco
Copy link
Member Author

bdraco commented Nov 6, 2022

Similar to hbldh/bleak#926 but just a bit higher since the esps are slower

@bdraco
Copy link
Member Author

bdraco commented Nov 6, 2022

related home-assistant/core#81416

@jesserockz jesserockz merged commit dbfff43 into main Nov 6, 2022
@jesserockz jesserockz deleted the timeouts_too_low branch November 6, 2022 19:32
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