|
|
@@ -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
|