Fix connect() params in example
This commit is contained in:
parent
30f706fb03
commit
8835512f30
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue