Skip to content

Commit

Permalink
!180 update script/libs/aliyun.lua.
Browse files Browse the repository at this point in the history
Merge pull request !180 from 杨肖绕/N/A
  • Loading branch information
wendal authored and gitee-org committed Dec 4, 2023
2 parents 5339b49 + 4c48f71 commit 66222e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/libs/aliyun.lua
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ tPara[mqtt_port] ,mqtt端口
tPara[mqtt_isssl] ,是否使用ssl加密连接,true为无证书最简单的加密
]]
function aliyun.setup(tPara)
mqtt_host = tPara.InstanceId..".mqtt.iothub.aliyuncs.com"
mqtt_host = tPara.host or tPara.InstanceId..".mqtt.iothub.aliyuncs.com"
if tPara.ProductSecret == "" or tPara.ProductSecret == nil then
confiDentialTask(tPara.DeviceName,tPara.ProductKey,tPara.DeviceSecret,mqtt_host,tPara.mqtt_port,tPara.mqtt_isssl)
else
Expand Down

0 comments on commit 66222e4

Please sign in to comment.