It depends on the protocol.
In this case h02
I have multiple devices of them but one is a st901m and the M version don’t send a disconnect. It’s just gone
If it's TCP based, you can set connection timeout to 5 minutes.
So this should do the trick?
<entry key='h02.timeout'>300</entry>
Yes.
Question,
Actually i was also looking for this idear.
would this best be set according to the link keep update ? My devices send link keep every 7 minutes.
So in my case i would for example set <entry key='myprotokol.timeout'>480</entry>
To show it offline if the device does not send the link keep within 8 minutes.. Correct ?
Makes sense to me.
Oh! My device send every 10 sec a message.
It go’s to sleep after 5 minutes no movement.
So if I put like 60 sec instead of 300 for the timeout this would be ideal.
@dennis,
Your idear does not seem logic to me. Since when you set
<entry key='h02.timeout'>60</entry>
Your device would show offline after 60 seconds when its not moving.
But actually your device would still be online and just not moving.
It sends always 10 sec interval a message to Traccar. Moving or not.
The device itself go’s to sleep after 5 min no movement/shocks and then stops sending messages to Traccar
Ok i see, thats a different situation. You where talking about a position update. I will use the timeout setting for the Link keep that is send from my device.
That won’t work with this solution. This will only terminate the “spook” connection that’s dead on the server.
I dont understand what you are writing.. Since Anton already stated that my conclusion was correct.
How it it possible to instead of going to Unknown after 5 minutes no message to just go Offline?
Maybe for a specific device or all makes no difference to me, i only have one device that dont do a disconnect.