Files
platforms/backend/iot-server/README.md

6 lines
709 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# IoT Server
设备侧 MQTT 接入进程。使用 `github.com/mochi-mqtt/server/v2` 内嵌实现 MQTT Broker监听 `devices/+/up``devices/+/ack`按《气体探测器通讯协议》V1.8 校验、解密和解析原始二进制帧;下行命令由受保护的内部 HTTP 接口接收后发布到 `devices/{deviceId}/down`,不依赖 Eclipse Paho 或外部 EMQX/Mosquitto。
YAML 的 `MQTT.Devices` 为每台设备配置独立 Client ID、设备号和凭证Broker ACL 只允许设备发布自己的 `up/ack` 并订阅自己的 `down`。生产环境必须启用 MQTT TLS并通过密钥注入覆盖 YAML 开发占位密码;单设备开发配置可用 `HEQI_IOT_MQTT_PASSWORD` 覆盖密码。