Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
8835512f
Commit
8835512f
authored
Mar 15, 2020
by
Marcel Stör
Browse files
Fix connect() params in example
parent
30f706fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/modules/mqtt.md
View file @
8835512f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment