Here you will find the answer.
As far as I am concerned, for mobile devices, it directly changes from online to unknown after 10 minutes, but for devices based on tcp protocol, how long does it take to change from online to offline
You must configure it per protocol.
<entry key='suntech.timeout'>7500</entry>
<entry key='server.timeout'>8010</entry>
<entry key='osmand.timeout'>360</entry>
<entry key='status.timeout'>8000</entry>
<entry key='h02.timeout'>7500</entry>
<entry key='teltonika.timeout'>7500</entry>
Please don't duplicate your questions in the future:
https://www.traccar.org/forums/topic/415-offline-online-unknown/
How long does it take for a device using a tcp connection to change from online to offline? Can this be set