User Tools

Site Tools


supported_hardware:mqtt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
supported_hardware:mqtt [2023/01/25 19:37] – created James Sentmansupported_hardware:mqtt [2023/03/14 17:25] – [Installing an MQTT Broker:] added config file specifics James Sentman
Line 9: Line 9:
 ====Installing an MQTT Broker:==== ====Installing an MQTT Broker:====
 If you’re already using MQTT then you can skip this step. MQTT Brokers are available for pretty much every platform. This plugin can connect to any of them but if you wish to install it on your Mac you can follow the instructions for the free broker at [[https://mosquitto.org|Mosquitto.org]] This is what I have used in testing. It requires some configuration via the command line but those instructions are pretty straight forward and are documented at their site. If you already have a broker running on any other system you can continue to use that, If you’re already using MQTT then you can skip this step. MQTT Brokers are available for pretty much every platform. This plugin can connect to any of them but if you wish to install it on your Mac you can follow the instructions for the free broker at [[https://mosquitto.org|Mosquitto.org]] This is what I have used in testing. It requires some configuration via the command line but those instructions are pretty straight forward and are documented at their site. If you already have a broker running on any other system you can continue to use that,
 +
 +For the most basic install specifically the changes that need to be made to the mosquitto.conf file are:
 +
 +Under General Configuration towards the beginning and before the per listener section please add:
 +<code>
 +allow_anonymous true
 +</code>
 +
 +Further down under the listener section you must create a listener entry with the default port number. The default line in the configuration is the word listener commented out like:
 +<code>
 +#listener
 +</code>
 +
 +please replace that with a line like:
 +
 +<code>
 +listener 1883
 +</code>
 +
 +and then restart the process. If running on MacOS and installed through Brew you can do this by issuing the command:
 +<code>
 +brew services restart mosquitto
 +</code>
 +
 +this will also take care of having it restart after the machine restarts
  
 ----- -----
supported_hardware/mqtt.txt · Last modified: 2023/03/17 13:35 by James Sentman