We consider dev handler as "timing out" if a lowcar device hasn't received a message from dev handler in TIMEOUT milliseconds. Currently, we record the timestamp of the most recent DEVICE_PING to determine this. We should update this timestamp when we receive a DEVICE_WRITE as well.
This fix should need only a few lines of modifying Device.cpp
We consider dev handler as "timing out" if a lowcar device hasn't received a message from dev handler in
TIMEOUT
milliseconds. Currently, we record the timestamp of the most recentDEVICE_PING
to determine this. We should update this timestamp when we receive aDEVICE_WRITE
as well.This fix should need only a few lines of modifying
Device.cpp