Add the ability to send an MQTT update as a retained publication in service hook #356

Merged
merged 1 commit into from Jul 11, 2012

Conversation

Projects
None yet
2 participants
@andypiper
Contributor

andypiper commented Jun 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.

technoweenie added a commit that referenced this pull request Jul 11, 2012

Merge pull request #356 from andypiper/master
Add the ability to send an MQTT update as a retained publication in service hook

@technoweenie technoweenie merged commit 149e69b into github:master Jul 11, 2012

@technoweenie

This comment has been minimized.

Show comment Hide comment
@technoweenie

technoweenie Jul 11, 2012

Contributor

Done! Let me know if you have problems.

Contributor

technoweenie commented Jul 11, 2012

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