Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Publishing to MQTT on NodeMCU
-- 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