Last active
October 24, 2016 20:44
-
-
Save Ames/1d89989d9facfe7c2c48 to your computer and use it in GitHub Desktop.
Publishing to MQTT on NodeMCU
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Publish a message to the MQTT Broker | |
client:publish( | |
"temp/0", -- topic name | |
tF, -- message payload | |
1, -- QOS level | |
1, -- retain | |
function(conn) -- on-send callback | |
print("sent.") | |
end | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment