Skip to main content

Bridges MQTT topics to a pseudo-terminal device

Project description

mqtty

mqtty bridges an MQTT topic to a local pseudoterminal (PTY), allowing you to interact with serial ports over MQTT as if they were local TTY devices.

This is useful for debugging, automation, or tunneling serial communication through a networked MQTT broker.

Usage

mqtty mqtt://<host>/<topic> [--pts-only | --wrap-picocom]

You must choose one of the two modes:

  • --pts-only, -p: Print the path to the PTS device and keep it open. Useful for tools or scripts that want to use the virtual serial port.

  • --wrap-picocom, -w: Launch picocom --quiet attached to the PTS device. This allows interactive use of a remote serial port over MQTT.

The <topic> segment of the URI is used as the base path for MQTT messages:

  • .../device_serial_input receives data from your local PTY (sent to the device)
  • .../device_serial_output sends incoming data from the device to your PTY

Example

mqtty mqtt://broker.local/mydevice --wrap-picocom

This opens a local PTS device, bridges it to mydevice/device_serial_input and mydevice/device_serial_output, and launches picocom on the virtual port.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mqtty-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mqtty-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file mqtty-0.1.0.tar.gz.

File metadata

  • Download URL: mqtty-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mqtty-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aa94225c31f9df23f9f0aed85d65898dcc69ad37080a1fc64e3c8a054265cf54
MD5 9cd8a889b4e356c091bb72a52bf924f4
BLAKE2b-256 4d05977074577ee534e59dd25688b95791e6b80c9cdf9d966a2bffed0a9c4c70

See more details on using hashes here.

Provenance

The following attestation bundles were made for mqtty-0.1.0.tar.gz:

Publisher: release.yml on embeddedTS/mqtty

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mqtty-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mqtty-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mqtty-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f828ad28bf48bc25068e0de2f379b38acd4d174f8d633fcc35e65f951f858c23
MD5 ccdd4592e3394cf905cab851fd72c9aa
BLAKE2b-256 ca6d5901c5cdd73b30fa45cf0dfd250c1f19f73372258b9d670e5c4d2ce41160

See more details on using hashes here.

Provenance

The following attestation bundles were made for mqtty-0.1.0-py3-none-any.whl:

Publisher: release.yml on embeddedTS/mqtty

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page