domoticz:mosquitto
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| domoticz:mosquitto [2023/10/20 06:40] – oscar | domoticz:mosquitto [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Mosquitto ====== | ||
| - | |||
| - | ---- | ||
| - | ==== Installing ==== | ||
| - | Install the packages: | ||
| - | < | ||
| - | # apt-get install mosquitto | ||
| - | # apt-get install mosquitto-clients | ||
| - | </ | ||
| - | |||
| - | Update the config file: | ||
| - | < | ||
| - | # nano / | ||
| - | ------------------------------------ | ||
| - | pid_file / | ||
| - | |||
| - | persistence true | ||
| - | persistence_location / | ||
| - | |||
| - | log_dest file / | ||
| - | |||
| - | include_dir / | ||
| - | |||
| - | allow_anonymous true | ||
| - | log_type error | ||
| - | log_type warning | ||
| - | #log_type notice | ||
| - | #log_type information | ||
| - | |||
| - | connection_messages true | ||
| - | log_timestamp true | ||
| - | </ | ||
| - | Check status: | ||
| - | < | ||
| - | # systemctl status mosquitto.service | ||
| - | ------------------------------------ | ||
| - | ● mosquitto.service - Mosquitto MQTT Broker | ||
| - | | ||
| - | | ||
| - | Docs: man: | ||
| - | | ||
| - | Process: 1120 ExecStartPre=/ | ||
| - | Process: 1122 ExecStartPre=/ | ||
| - | Process: 1123 ExecStartPre=/ | ||
| - | Process: 1124 ExecStartPre=/ | ||
| - | Main PID: 1125 (mosquitto) | ||
| - | Tasks: 1 (limit: 1571) | ||
| - | CPU: 110ms | ||
| - | | ||
| - | | ||
| - | |||
| - | okt 20 08:29:19 raspberrypi systemd[1]: Starting mosquitto.service - Mosquitto MQTT Broker... | ||
| - | okt 20 08:29:19 raspberrypi mosquitto[1125]: | ||
| - | okt 20 08:29:19 raspberrypi systemd[1]: Started mosquitto.service - Mosquitto MQTT Broker. | ||
| - | </ | ||
| - | |||
| - | ==== Testing ==== | ||
| - | In your existing terminal, subscribe to the “testtopic” topic | ||
| - | |||
| - | # mosquitto_sub -h localhost -t " | ||
| - | |||
| - | Then open another terminal and send a message on that topic | ||
| - | |||
| - | # mosquitto_pub -h localhost -t " | ||
| - | |||
| - | |||
| - | |||
| - | < | ||
| - | </ | ||
domoticz/mosquitto.1697784030.txt.gz · Last modified: by oscar
