google / rust-async-coap

A flexible, asynchronous library for using and serving CoAP resources in Rust.
Apache License 2.0
49 stars 17 forks source link

SendObserve should calculate `delay_to_restart` value from `Max-Age` option #7

Open darconeous opened 5 years ago

darconeous commented 5 years ago

The value returned by delay_to_restart() on SendObserve should be calculated from the value of the Max-Age option (if present) in the responses. Something around 80% would be sufficient.