Switch timers to use embedded-time
MathiasKoch opened this issue · 0 comments
MathiasKoch commented
Currently we rely on a timer implementing embedded_hal::Countdown
for keeping track of keep-alive, but this means that we cannot use the same timer for retry handling, as there is no way of obtaining the current timer value, rather than just checking if it has reached the timeout value.
Replacing the Countdown
requirement with a Clock
from https://github.com/FluenTech/embedded-time/, allows us to use a single timer for multiple things, including keep-alive, packet timeout, retry and delays.