Repository with python MQTT client class based on Paho mqtt with serial port capabilities and a proxy class between MQTT unix sockets
These classes come from Safecor, the operational system for security products.
- UnixSocketTunneler can be used to create a tunnel between two UNIX domain sockets that copies data in both ways.
- MqttClient - A generic MQTT client based on paho MQTT. It can handle connections to serial ports, unix domain sockets and TCP ports.
- SerialMqttClient - The serial port facility for MqttClient.
The script mqtt_tunnels.py can also be used as a standalone application to establish tunnels between Unix domain sockets.
This code is not restricted to MQTT communication and can be used to create tunnels between any Unix Domain sockets.
This code is provided with the GPLv3 licence and free to use. No support is provided but improvements and bug fixes are welcome.