This library may be useful for testing Meshtastic networks connected to an MQTT server.
Project description
This project is useful for testing Meshtastic networks connected to an MQTT server. Functions can be called in mqttc.py or by using arguments in the command line.
Available functions:
send_nodeinfo(short_name, long_name, hw_model)
send_position(lat, lon, alt, precision)
send_device_telemetry(battery_level, voltage, chutil, airtxutil, uptime)
send_text_message("text")
Available arguments:
-h, --help show this help message and exit
--config CONFIG Path to the config file
--message MESSAGE The message to send
--lat LAT Latitude coordinate
--lon LON Longitude coordinate
--alt ALT Altitude
--precision PRECISION Position Precision
Examples:
To publish a message to the broker using settings defined in config.json:
python3 mqttc.py --message "I need an Alpinist"
To publish a message to the broker using settings defined in my-config.json:
python3 mqttc.py --config "my-config.json" --message "I need an Alpinist"
Installation:
git clone https://github.com/pdxlocations/MQTTc-for-Meshtastic.git
cd MQTTc-for-Meshtastic
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Rename config-example.json and edit configuration:
sudo mv config-example.json config.json
sudo nano config.json
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mmqtt-1.0.7.tar.gz.
File metadata
- Download URL: mmqtt-1.0.7.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e3506d72da5bbf43622aaa5afc25621fbfe03b507f2af5c646e89db37725e6b
|
|
| MD5 |
21002e40c2af4fa8c2dd63df3ab591bf
|
|
| BLAKE2b-256 |
05a1847ff171bc38c633f0ad46d44f9c0413d01646d41b696c7b27ff38ab3850
|
Provenance
The following attestation bundles were made for mmqtt-1.0.7.tar.gz:
Publisher:
release.yaml on pdxlocations/mmqtt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mmqtt-1.0.7.tar.gz -
Subject digest:
9e3506d72da5bbf43622aaa5afc25621fbfe03b507f2af5c646e89db37725e6b - Sigstore transparency entry: 190012667
- Sigstore integration time:
-
Permalink:
pdxlocations/mmqtt@8a4f694c99c163daf92396ae0e0758a8902cdca0 -
Branch / Tag:
refs/tags/1.0.7 - Owner: https://github.com/pdxlocations
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@8a4f694c99c163daf92396ae0e0758a8902cdca0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mmqtt-1.0.7-py3-none-any.whl.
File metadata
- Download URL: mmqtt-1.0.7-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8212bdb1bbcf853eff4835f893f71916b67bda98d0ef0dc7e7a6060e7703d51c
|
|
| MD5 |
b4daed540501aba3a1be545e94000b7f
|
|
| BLAKE2b-256 |
69c2b0ec2ec747d0e017300d47f97fe1381e9479961dad5eeab458a6193a8fca
|
Provenance
The following attestation bundles were made for mmqtt-1.0.7-py3-none-any.whl:
Publisher:
release.yaml on pdxlocations/mmqtt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mmqtt-1.0.7-py3-none-any.whl -
Subject digest:
8212bdb1bbcf853eff4835f893f71916b67bda98d0ef0dc7e7a6060e7703d51c - Sigstore transparency entry: 190012669
- Sigstore integration time:
-
Permalink:
pdxlocations/mmqtt@8a4f694c99c163daf92396ae0e0758a8902cdca0 -
Branch / Tag:
refs/tags/1.0.7 - Owner: https://github.com/pdxlocations
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@8a4f694c99c163daf92396ae0e0758a8902cdca0 -
Trigger Event:
push
-
Statement type: