medre-adapter-meshtastic
The Meshtastic adapter for MEDRE.
Install
Use uv to install MEDRE and this adapter in the same persistent tool environment:
uv tool install medre
medre adapters install meshtastic
On Windows, the package-changing command prints a uv command to run after
medre.exe exits, rather than replacing an executable still in use.
Adapter installation defaults to package-index requirements; existing saved
Git requests and catalogs are preserved. For fake smoke, guided route
creation, locked uv deployment projects, private Git sources, local checkouts,
and the same-environment requirement, see the
MEDRE Getting Started guide
and the
adapter-source guide.
Neither MEDRE nor the adapter installs packages during runtime startup.
Configure
Save a private connections.yaml with one real TCP instance. The common case
needs the connection type and the node host; the default TCP port is shown in
the setup guide's options:
adapters:
meshtastic:
radio-a:
adapter_kind: real
connection_type: tcp
host: meshtastic.local
routes: {}
Add another adapter instance (a second radio, or a different transport), then
build routes with guided configuration. Environment overrides use
MEDRE_ADAPTER__<TOKEN>__<FIELD>, for example
MEDRE_ADAPTER__RADIO_A__SERIAL_PORT for a serial node. For every option,
extra instances, and troubleshooting, see the
Meshtastic setup guide.
Verify
Confirm the installed adapter and the saved configuration resolve:
medre adapters check --config connections.yaml
The setup guide's Verify section shows the config check, a healthy start, health states, and delivery semantics.
Outbound pacing
The default message_delay_seconds is 2.2 seconds, leaving a margin above current firmware's two-second phone-originated text limit. Shorter configured intervals can cause RATE_LIMIT_EXCEEDED even when the SDK returns a packet ID. Use a lower interval only with separately qualified firmware. A local transport handoff is not proof of RF reception; verify delivery on an independent node. The firmware rule is implemented in PhoneAPI.cpp.
Default relay attribution
Matrix messages sent to Meshtastic default to Alice[M]: message, using the
first five display-name characters. The prefix shares the 227-byte UTF-8 budget
with the body. Other source platforms retain generic short-name attribution.
Set relay_prefix: "" to disable it or supply a custom generic template;
omitted/null selects the source-aware default.
Templates use generic variables such as {sender} and {sender_short}.
Because radio displays are constrained, the label variables sender,
sender_short, and origin_label also accept truncation suffixes:
{sender3} renders the first three Unicode code points of the sender
label (N must be at least 1). A numeric suffix on any other variable
passes through unchanged.
Offline startup and recovery
An offline radio no longer holds up the runtime for the SDK's multi-minute connection defaults. The existing sync_timeout_ms setting defaults to 30000: MEDRE waits up to 30 seconds for that instance's initial connection, then starts it degraded and proceeds with the remaining adapters. Each offline instance has its own budget; startup still visits adapter instances in order.
Routes involving a started, degraded radio remain available. Recovery retains
one connection attempt at a time and retries with capped backoff until the radio
returns or MEDRE stops. Use medre diagnostics --refresh-health to inspect the
live connection state. A connection returning after shutdown is closed.
Set sync_timeout_ms on the Meshtastic instance to change the initial wait and native SDK phase limits. It must be a positive integer in milliseconds. Invalid configuration and missing dependencies still fail startup. The async deadline does not forcibly terminate a blocking SDK thread; see the connection lifecycle contract for ownership and shutdown limits. Native handoff still requires independent RF qualification.
Development
See contributing for the shared Trunk quality gate and uv-based editable development workflow. Maintainer material — packaging and provenance, ownership and imports, offline samples and diagnostics, tests, fake smoke sources, coordinated CI, and the adapter contract — lives in adapter maintenance.
Metadata
Release files for medre-adapter-meshtastic 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| medre_adapter_meshtastic-0.3.0.tar.gz | 348.6 kB | With provenance | Details for medre_adapter_meshtastic-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| medre_adapter_meshtastic-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for medre_adapter_meshtastic-0.3.0-py3-none-any.whl |
Total release size: 467.0 kB
Release files / medre_adapter_meshtastic-0.3.0.tar.gz
| Download URL | medre_adapter_meshtastic-0.3.0.tar.gz |
|---|---|
| Size | 348.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e1f8d3ef205d73772087ff65c0a3d4012b028255217fb3ea08afc421473d7b2
|
|
BLAKE2b-256 checksum How to use checksums |
530fb32db58b5aec829f84e38b93fbc2080785ecca0b80fa2d8f53b6890e7161
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / medre_adapter_meshtastic-0.3.0-py3-none-any.whl
| Download URL | medre_adapter_meshtastic-0.3.0-py3-none-any.whl |
|---|---|
| Size | 118.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
914b14dfd9d5cf2d468328b74deafc14820628335c162a66c80dc14eb2a62308
|
|
BLAKE2b-256 checksum How to use checksums |
bd4b8a760862da83fcabe2d49bf3d12ebf37103d77b8baf04d7ad8270acbe4fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for medre-adapter-meshtastic 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for medre_adapter_meshtastic-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.