Fix connect() params in example

This commit is contained in:
Marcel Stör 2020-03-15 09:34:12 +01:00
parent 30f706fb03
commit 8835512f30
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ m:on("overflow", function(client, topic, data)
end)
-- for TLS: m:connect("192.168.11.118", secure-port, 1)
m:connect("192.168.11.118", 1883, 0, function(client)
m:connect("192.168.11.118", 1883, false, function(client)
print("connected")
-- Calling subscribe/publish only makes sense once the connection
-- was successfully established. You can do that either here in the