Bridges MQTT topics to a pseudo-terminal device
Project description
mqtty
mqtty bridges MQTT topics to either your local terminal or a pseudoterminal (PTY), letting you interact with serial-style streams over MQTT.
This is useful for debugging, automation, or tunneling serial communication through a networked MQTT broker.
Usage
mqtty mqtt://<host>/<topic> [--pts-only]
By default, mqtty runs in bidirectional terminal mode:
- bytes from
stdinare published to.../device_serial_input - bytes from
.../device_serial_outputare written tostdout - if
stdinis a TTY, it is placed into raw mode whilemqttyis running - type
Ctrl-A Ctrl-Xto exit, matching picocom's default exit sequence - type
Ctrl-A Ctrl-Ato send a literalCtrl-A
Use --pts-only if you only want a PTY device:
--pts-only,-p: Print the path to the PTS device and keep it open without attaching local stdin/stdout. Useful for tools or scripts that want to use the virtual serial port.
The <topic> segment of the URI is used as the base path for MQTT messages:
.../device_serial_inputreceives bytes from local input and sends them to the device.../device_serial_outputcarries device output back to your terminal or PTY
Example
mqtty mqtt://broker.local/mydevice
This connects your terminal directly to mydevice/device_serial_input and mydevice/device_serial_output.
To expose a PTY instead:
mqtty mqtt://broker.local/mydevice --pts-only
This prints the local PTY path and keeps it bridged to the same MQTT topics until interrupted.
License
MIT
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 mqtty-0.1.2.tar.gz.
File metadata
- Download URL: mqtty-0.1.2.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4126853484250d415ed107b5b2880474bba307c95cb731673cff29e65879ab55
|
|
| MD5 |
482408e28a219b38fd0aebc98ea9be36
|
|
| BLAKE2b-256 |
ee422bc27abc8c85a6d1db822fa2c49abb23d78eb90c19c77ca18ddeb6ccf202
|
Provenance
The following attestation bundles were made for mqtty-0.1.2.tar.gz:
Publisher:
release.yml on embeddedTS/mqtty
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mqtty-0.1.2.tar.gz -
Subject digest:
4126853484250d415ed107b5b2880474bba307c95cb731673cff29e65879ab55 - Sigstore transparency entry: 1341655619
- Sigstore integration time:
-
Permalink:
embeddedTS/mqtty@2e040290aaede730d6c1dd0787c49eff7610176d -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/embeddedTS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2e040290aaede730d6c1dd0787c49eff7610176d -
Trigger Event:
release
-
Statement type:
File details
Details for the file mqtty-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mqtty-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4031ae2ed1d712729a33b138290429fc552346cd7e1020e1cbf273b71c8d2bd1
|
|
| MD5 |
ae7618f839902056a86fc0f080f2eb3a
|
|
| BLAKE2b-256 |
cec4d19770410552267c54e5205ed9c5808562d2555697d0a2aba0012004c4e8
|
Provenance
The following attestation bundles were made for mqtty-0.1.2-py3-none-any.whl:
Publisher:
release.yml on embeddedTS/mqtty
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mqtty-0.1.2-py3-none-any.whl -
Subject digest:
4031ae2ed1d712729a33b138290429fc552346cd7e1020e1cbf273b71c8d2bd1 - Sigstore transparency entry: 1341655622
- Sigstore integration time:
-
Permalink:
embeddedTS/mqtty@2e040290aaede730d6c1dd0787c49eff7610176d -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/embeddedTS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2e040290aaede730d6c1dd0787c49eff7610176d -
Trigger Event:
release
-
Statement type: