|
@@ -43,7 +43,7 @@ m:on("offline", function(conn)
|
|
|
end)
|
|
|
m:on("message",dispatch )
|
|
|
-- Lua: mqtt:connect( host, port, secure, auto_reconnect, function(client) )
|
|
|
-m:connect(192.168.18.88,1883,0,1)
|
|
|
+m:connect("192.168.18.88",1883,0,1)
|
|
|
|
|
|
-- usage:
|
|
|
-- another client(pc) subscribe to /topic2, will receive the test.lua content.
|