Skip to content

Instantly share code, notes, and snippets.

@marciogranzotto
Created January 24, 2017 16:30
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save marciogranzotto/20e45b83bbcca11e267708b10507c54a to your computer and use it in GitHub Desktop.
Save marciogranzotto/20e45b83bbcca11e267708b10507c54a to your computer and use it in GitHub Desktop.
mqtt-avahi-service-descriptor
<!-- Put this in /etc/avahi/services/mosquitto.service -->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">Mosquitto MQTT server on %h</name>
<service>
<type>_mqtt._tcp</type>
<port>1883</port>
<txt-record>info=Publish, Publish! Read all about it! mqtt.org</txt-record>
</service>
</service-group>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment