forked from luca/mineqtt
docs: add MqttClient:publish example to README.md
This commit is contained in:
parent
49194e94f0
commit
efe6e9eed5
|
@ -28,6 +28,11 @@ end
|
||||||
|
|
||||||
print(client.is_connected)
|
print(client.is_connected)
|
||||||
|
|
||||||
|
local err = client:publish("test", "Test Message Please Ignore")
|
||||||
|
if err ~= nil then
|
||||||
|
error(err)
|
||||||
|
end
|
||||||
|
|
||||||
local err = client:disconnect()
|
local err = client:disconnect()
|
||||||
if err ~= nil then
|
if err ~= nil then
|
||||||
error(err)
|
error(err)
|
||||||
|
|
Loading…
Reference in New Issue