消息总线架构

接入层 → 总线层(u/d)→ 处理层 · gmqtt + 事件总线

sub cfg d publish d Devices 传感器 / 仪表 Gateway HTTP/TCP/Modbus 接入层 Adapter gmqtt Broker Topic u / d Message Bus 总线 + Go server MQTT Client 订阅 gmqtt Ingest 上行流水线 事件总线 事件解耦 · sys / Socket 处理层 Processing Protocol 插件 Rule 规则/转发 OTA 编码下行 控制面 / 展示 Node · 实时推送 编排 · Open API Vue / 小程序 仅经 Node {PK}/{GW}/self/{module}/{u|d} Uplink u · Downlink d · LingdianDeviceMessage 标准信封 No skip-layer Vue ↛ Go / Broker