Install Mosquitto (MQTT)
Eclipse Mosquitto™ is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 3.1 and 3.1.1. MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for "Internet of Things" messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers like the Arduino.
1) Install
sudo apt-get update
sudo apt-get install mosquitto
2) Configure Password
cd /etc/mosquitto/
mosquitto_passwd -c [output file name] [your username]
[your password]
sudo nano mosquitto.conf
Append this string at the bottom of the file.
3) Manually Start/Stop (Default Auto Start)
sudo /etc/init.d/mosquitto start
sudo /etc/init.d/mosquitto stop
4) Receive and send from Node-Red
Eclipse Mosquitto™ is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol versions 3.1 and 3.1.1. MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for "Internet of Things" messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers like the Arduino.
1) Install
sudo apt-get update
sudo apt-get install mosquitto
2) Configure Password
cd /etc/mosquitto/
mosquitto_passwd -c [output file name] [your username]
[your password]
sudo nano mosquitto.conf
Append this string at the bottom of the file.
Code:
password_file /etc/mosquitto/mqttPINE64pass
3) Manually Start/Stop (Default Auto Start)
sudo /etc/init.d/mosquitto start
sudo /etc/init.d/mosquitto stop
4) Receive and send from Node-Red