aiohomekit icon indicating copy to clipboard operation
aiohomekit copied to clipboard

**DO NOT MERGE** Set sensible COAP timeouts for sleepy thread devices

Open Jc2k opened this issue 3 years ago • 1 comments

Some Thread devices are sleepy - CoAP packets queue at routers. They are then delivered when the device wakes up.

In some cases the default sleep intervals are longer that the default CoAP timeouts. Upstream added TransportTuning for us, which lets us avoid timeouts (timeouts cause retries etc).

For a CoAP pairing where we have an Accessory Runtime Information service and a Sleep Interval characteristic, set the ACK timeout based on that interval.

Jc2k avatar Dec 01 '22 09:12 Jc2k

Codecov Report

Attention: 20 lines in your changes are missing coverage. Please review.

Comparison is base (5d8c8f1) 74.47% compared to head (f7061e6) 74.41%.

Files Patch % Lines
aiohomekit/controller/coap/connection.py 23.52% 13 Missing :warning:
aiohomekit/controller/coap/pairing.py 41.66% 7 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #260      +/-   ##
==========================================
- Coverage   74.47%   74.41%   -0.06%     
==========================================
  Files          99       99              
  Lines        9331     9353      +22     
==========================================
+ Hits         6949     6960      +11     
- Misses       2382     2393      +11     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Feb 09 '24 22:02 codecov[bot]