Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chenglinning/freemqtt
A MQTT Server in Python
https://github.com/chenglinning/freemqtt
mqtt server-side
Last synced: about 2 months ago
JSON representation
A MQTT Server in Python
- Host: GitHub
- URL: https://github.com/chenglinning/freemqtt
- Owner: chenglinning
- License: apache-2.0
- Created: 2024-09-22T04:01:47.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-23T05:50:27.000Z (2 months ago)
- Last Synced: 2024-11-02T00:32:45.339Z (about 2 months ago)
- Topics: mqtt, server-side
- Language: Python
- Homepage: https://freemqtt.cn
- Size: 186 KB
- Stars: 16
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## [FreeMQTTT](https://freemqtt.cn/)
MQTT broker implemented in python based on asyncio (async/await)
### Features
+ Implements the full set of MQTT 3.1.1 & MQTT 5.0 (except AUTH)
+ QoS0, QoS1, QoS2 support
+ MQTT over Websocket support
+ TLS/SSL support
+ Unique Application isolation security mechanism
+ Sytem metrics topic: $SYS/METRICS
+ Client online notification topic: $SYS/ONLINE
+ Client offline notification topic: $SYS/OFFLINE
+ Configuration using the TOML file### Running environment
Python 3.9+
### Getting started
+ Get source code
```bash
$ git clone https://github.com/chenglinning/freemqtt.git
```
+ Install dependency packages```bash
$ cd ./freemqtt
$ python -m pip install -r requirements.txt
```+ Run the server in foreground
```bash
$ python ./freemqttd.py
[I 240921 16:54:11 freemqttd:91] freemqttd started```
+ Run the server in background
```bash
$ python ./freemqttctl.py start
starting freemqttd ...
start freemqttd success.```
+ Generate MQTT client login password (Token)
```bash
$ python ./freemqtt_token.py myappAppID: myapp
Token: gVRVsBqw3bQSD4CQ4rFOXtfGQMelHJmEaNlYtH7GS/A=
```Documentation is available on [Read the Docs](https://freemqtt.cn)