Merge pull request #2385 from xinnan-tech/fixmqtt

fix:修复单模块mqtt下发错误
This commit is contained in:
hrz
2025-10-20 18:47:05 +08:00
committed by GitHub
+1 -1
View File
@@ -140,7 +140,7 @@ class OTAHandler(BaseHandler):
self.logger.bind(tag=TAG).warning("缺少MQTT签名密钥,密码留空")
# 构建MQTT配置(直接使用 mqtt_gateway 字符串)
return_json["mqtt_gateway"] = {
return_json["mqtt"] = {
"endpoint": mqtt_gateway_endpoint,
"client_id": mqtt_client_id,
"username": username,