Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add the ability to send an MQTT update as a retained publication in service hook #356
This pull request adds an additional boolean to the MqttPub service hook which enables the message to be marked as retained, meaning that it will remain available to subscriber who arrive after the publication was sent. This also makes it useful for checking a specified MQTT topic for the last known commit.
It also changes the display label of the service hook from MqttPub to MQTT Publish. The service hook code file itself remains named mqtt.rb.
No change is strictly necessary to the test code for the service hook - it will simply assume that the publication is non-retained.