Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[milo-dev] Detecting connection loss

Hi again,

I am going through some connection loss use cases, and I have found that the client libraries are very resilient to physical connection issues. If the session timeout is high enough, then the reconnect happens smoothly, as if nothing happened. Props to the implementers!

Now I want my client to detect if a device has been disconnected. I have read Part 4 Section 6.7 Re-establishing connections, and they recommend to Subscribe to the State Variable in the ServerStatus. The NodeID is Identifiers.Server_ServerStatus_State, correct? Anyway, whenever I unplug the ethernet cable, I don't get any notification on this MonitorItem. If I poll a variable (any variable), I get the request timeout. Polling a variable would solve this use case, but perhaps there is a more elegant way to detect connection issues?

Best regards,
Mads Stavang

Back to the top