状态通知时时间一样该如何保证设备状态的准确?

你需要用 V5.8.6 或者 v5.9.0

#14869 Added the connected_at timestamp field to the $events/client_disconnected event payload. This enhancement enables tracking the original connection session time for disconnected clients, preventing outdated disconnect events from overriding newer connection states.

这样 disconnected 事件里面有也有连接时间(connected_at),那你就可以判断他到底是和哪一个 connected 事件是一对了。

1 个赞