Releases: gausby/gen_mqtt
Releases · gausby/gen_mqtt
GenMQTT 0.3.1
This release simplifies the installation of the module significantly, before one had to include a :vmq_commons dependency via Github. Now it is possible to just add {:gen_mqtt, "~> 0.3.1"} to the deps section in the mix.exs-file.
Thanks to Erlio for publishing their vmq_commons package to the Hex package manager. <3
v0.3.0
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.