Skip to content

v0.3.0

Choose a tag to compare

@gausby gausby released this 22 Jun 19:04
· 18 commits to master since this release

v0.3.0 introduces a retain option on the publish function. Retained messages are described in the VerneMQ documentation.

# Send a retained message to my_topic
GenMQTT.publish(pid, "my_topic", "my payload", 0, true)

The retain value defaults to false, so the API should remain the same.