RS485 数据事件
当服务收到无法匹配到等待中透传请求的 RS485 数据时,发送 device.rs485.received。
json
{
"type": "event",
"topic": "device.rs485.received",
"data": {
"deviceId": "abc123456789",
"occurredAt": "2026-07-15T08:30:00Z",
"rs485": {
"responseHex": "02060034000109F7"
}
}
}| 字段 | 类型 | 说明 |
|---|---|---|
deviceId | string | 设备标识 |
occurredAt | string | 接收时间,RFC3339 UTC |
rs485.responseHex | string | 原始 RS485 十六进制数据 |
正常匹配到 device.rs485.transceive 的响应只出现在对应 reply 的 command.result.responseHex 中,不重复发送本事件。晚到响应和设备主动上报的数据可能通过本事件发送。
事件不提供历史回放。业务不能丢失的数据应由调用方在接收后持久化。
