From efe6e9eed5d1e1dfee88266dda2a13175f00e850 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 5 Sep 2024 23:27:21 +0200 Subject: [PATCH] docs: add MqttClient:publish example to README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 4ca838c..e561d4a 100644 --- a/README.md +++ b/README.md @@ -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)