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.