Skip to content

RS485 数据事件

当服务收到无法匹配到等待中透传请求的 RS485 数据时,发送 device.rs485.received

json
{
  "type": "event",
  "topic": "device.rs485.received",
  "data": {
    "deviceId": "abc123456789",
    "occurredAt": "2026-07-15T08:30:00Z",
    "rs485": {
      "responseHex": "02060034000109F7"
    }
  }
}
字段类型说明
deviceIdstring设备标识
occurredAtstring接收时间,RFC3339 UTC
rs485.responseHexstring原始 RS485 十六进制数据

正常匹配到 device.rs485.transceive 的响应只出现在对应 reply 的 command.result.responseHex 中,不重复发送本事件。晚到响应和设备主动上报的数据可能通过本事件发送。

事件不提供历史回放。业务不能丢失的数据应由调用方在接收后持久化。

Docs buildVersion v1.3.6-20260720-180213-70
Copyright © 2026 WLTE