### Brick MQTT Proxy

For usage examples see B4J HowTo TinkerForge MQTT.
For detailed description on how to setup, see the B4J HowTo Raspberry Pi > MQTT Setup.
It covers TinkerForge Brick MQTT Proxy, B4X jMQTT Client Library and Domoticz MQTT.
TinkerForge Brick MQTT Proxy Documentation
http://www.tinkerforge.com/en/doc/Software/Brick_MQTT_Proxy.html#brick-mqtt-proxy-topics-and-payload-structure
TinkerForge Brick MQTT Proxy Download
https://github.com/Tinkerforge/brick-mqtt-proxy
Quick Hint Install or Update
// Get the paho-mqtt
sudo pip install paho-mqtt
// Important step
sudo pip install tinkerforge --upgrade
// Set the MQTT folder, e.g.
cd /home/pi/tinkerforge/mqtt
// Remove the existing script else the new scropt will be called like brick-mqtt-proxy.py.1
rm brick-mqtt-proxy.py
// Get the latest version from github
wget https://raw.githubusercontent.com/Tinkerforge/brick-mqtt-proxy/master/brick-mqtt-proxy.py
Or
Copy the latest MQTT Proxy Python script to the folder from which it is started
Test if the Brick MQTT Proxy is working:
sudo python brick-mqtt-proxy.py
To start the Brick MQTT Proxy at Reaspberry Pi boot, add to crontab:
sudo crontab -e
ADD the line
@reboot sudo python /home/pi/tinkerforge/brick-mqtt-proxy.py &
Check if the process is running:
ps -ef | grep mqtt

Changed: 2017-12-05 13:33, Category: TinkerForge, File: T6C264M1957.htm, ID: 1957