[mqtt] publishMQTT Action accepts a bytearray payload (#12170)

* [mqtt] MQTT Action publishMQTT accept byte array

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
This commit is contained in:
jimtng
2022-02-01 09:51:46 +10:00
committed by GitHub
parent 87975feab2
commit 5b1627c426
2 changed files with 35 additions and 11 deletions

View File

@@ -220,6 +220,7 @@ Once this action instance is retrieved, you can invoke the `publishMQTT(String t
```
mqttActions.publishMQTT("mytopic","myvalue", true)
```
Alternatively, `publishMQTT(String topic, byte[] value, Boolean retained)` can publish a byte array data.
The retained argument is optional and if not supplied defaults to `false`.