Skip to content

Adilius/MQTT-Broker-Python

Repository files navigation

Python version MQTT version

MQTT Broker

An MQTT broker using MQTT version 3.1.1 written in Python using no external libraries outside of Python standard library. Using threads for individual sockets the broker can handle multiple simultaneous connections. Will, retain, QoS above 0, and such are not implemented.

Quick start

  1. Clone repository:
git clone https://github.com/Adilius/MQTT-Broker-Python.git
  1. Run broker:
python .\MQTT_Broker.py

Implemented operations

  • Connect/Disconnect
  • Subscribe/Unsubscribe
  • Ping request/response
  • Publish

Demo

Terminal running broker:

MQTT_terminal

Testing broker using an MQTT client (seperate run from above gif)

MQTT_client

About

MQTT broker implementation in Python with no external libraries

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages