Skip to content

Commit

Permalink
fix: demo/turnkey/web_audio里面的mqtt链接不应该有ca_file变量
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Jan 2, 2025
1 parent c7b1f8f commit 1cf83ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/turnkey/web_audio/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ sys.taskInit(function()
if not result then
log.info("网络连接失败")
end
mqttc = mqtt.create(nil, mqtt_host, mqtt_port, mqtt_isssl, ca_file)
mqttc = mqtt.create(nil, mqtt_host, mqtt_port, mqtt_isssl)
mqttc:auth(client_id, user_name, password) -- client_id必填,其余选填
mqttc:keepalive(30) -- 默认值240s
mqttc:autoreconn(true, 3000) -- 自动重连机制
Expand Down

0 comments on commit 1cf83ce

Please sign in to comment.