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
Conversation
added a commit
that referenced
this pull request
Jul 11, 2012
technoweenie
merged commit 149e69b
into
github:master
Jul 11, 2012
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
Done! Let me know if you have problems. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
andypiper commentedJun 19, 2012
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.