Skip to content

RRMoelker/socketMQTT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adapter between one or multipe socket client and a MQTT broker. It is meant as a proxy for very basic devices that do not have a MQTT client. Devices such as the Wipy.

Forwards topic messages send over socket connection to MQTT broker. Currently only forwarding of messages is supported (publishing).

Socket MQTT proxy demo

Install

Run pip install -r requirements.txt. Advanced users don't forget to use a virtualenv.

Configure

Configure both the socket server and the MQTT broker in the file config.py:

SOCKET_HOST = '<HOST>'
SOCKET_PORT = <PORT>

MQTT_HOST = "<HOST_NAME>"
MQTT_PORT = <BASIC_PORT>

If authentication to the MQTT broker is required add a file credentials.py next to the socketServer.py with the contents:

username="<username>"
password="<password>"

Run

Start the socket to MQTT server with:

python socketServer.py

Test

telnet localhost 12345

Send a message with:

someTopic::someMessage

About

Socket to MQTT broker proxy server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages