Files
lora-xmpp-bridge/bridge.py
google-labs-jules[bot] 9c79475477 feat: Implement magic prefix to prevent bridging loops
This commit introduces a `MAGIC_PREFIX` (`🌐 `) that is prepended to
every message forwarded from the internet (XMPP) onto the local
Meshtastic mesh.

The `on_meshtastic_receive` handler has been updated to ignore any
incoming messages on the mesh that start with this prefix. This
prevents multiple bridges running in the same physical mesh network
from continually forwarding the same message back and forth, creating
an infinite communication loop.

Co-authored-by: jamessucla <2191476+jamessucla@users.noreply.github.com>
2026-03-06 09:22:26 +00:00

5.0 KiB