forked from luca/mineqtt
1
0
Fork 0

docs: add MqttClient:publish example to README.md

This commit is contained in:
Luca 2024-09-05 23:27:21 +02:00
parent 49194e94f0
commit efe6e9eed5
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@ end
print(client.is_connected)
local err = client:publish("test", "Test Message Please Ignore")
if err ~= nil then
error(err)
end
local err = client:disconnect()
if err ~= nil then
error(err)