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.1.tar.gz (5.5 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.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mqtty-0.1.1.tar.gz
  • Upload date:
  • Size: 5.5 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.1.tar.gz
Algorithm Hash digest
SHA256 2ea89118cdf624e156e12b94ad3c872e0e4af3ce1fc834e49551984edded6f71
MD5 9940d81c0241671fae67ee320b2cf470
BLAKE2b-256 cb2ab5ba7c10c1673e439ade143b3403af24996708f1aed3ee4ba5ef5b889aee

See more details on using hashes here.

Provenance

The following attestation bundles were made for mqtty-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: mqtty-0.1.1-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.12.9

File hashes

Hashes for mqtty-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b153262ed4c0a1a704ef114030205c6ccb0aeb276deee8bf59645c0cf0c9e772
MD5 159457088a9614b1a0f7a0f3868b5e72
BLAKE2b-256 5f4b778df9a0a93797a35e222832f11ffb66b751f080131d17da9cbc32f3c7fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for mqtty-0.1.1-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