clojurewerkz.machine-head.conversion documentation

Internal conversion functions that transform
Clojure data structures to Paho Java client classes

->int-array

(->int-array i)
Coerces the input to an array of integers

->topic-array

(->topic-array s)
Coerces the input to an array of strings
(topic names)

message->metadata

(message->metadata msg)
Produces an immutable map of message metadata (all attributes
except for payload)

to-message

(to-message input)
Instantiates an MQTT message from input