Skip to content

Conversation

@mattzzw
Copy link
Contributor

@mattzzw mattzzw commented Jan 24, 2026

As of today the region command is limited to serial output only. [1]

This PR adds the ability to also access the output of the region command via the remote cli.
Many repeaters are in remote and/or inaccessible locations. The need for a physical USB connection to debug region settings of already installed repeaters is far from ideal, IMHO.
As region configuration is unlikely to change frequently this is a trade-off between usability and LoRa data minimalism.

The output is limited to 160 chars for remote cli limiting the data to one LoRa packet. As a consequence more complex region setups might not be printed out completely.

[1] https://github.com/meshcore-dev/MeshCore/wiki/Repeater-&-Room-Server-CLI-Reference

@ripplebiz
Copy link
Collaborator

I had been toying with possibly adding a CLI command which uses the existing exportNamesTo() method, and just filtering on the FLOOD permission. ie just list comma sep region names of ones that are currently allowed. Can you re-work this PR to do that?

@ripplebiz
Copy link
Collaborator

Was just chatting with Liam, and we think this CLI command would be good: "region list {allowed|denied}"

@mattzzw
Copy link
Contributor Author

mattzzw commented Jan 25, 2026

Got it. Would the new commands be in addition to the region command or replacing it?

@mattzzw
Copy link
Contributor Author

mattzzw commented Jan 25, 2026

Added region list {allowed|denied} command

(Don't know if this example configuration actually makes sense)

region
  -> * F
 de
  de-hh^ F
  de-ni F
  de-sh F
  de-mv
  de-sa

region list allowed
  -> *,de-hh,de-ni,de-sh
region list denied
  -> de,de-mv,de-sa
>

@mattzzw mattzzw changed the title Add output of region cmd via remote cli Add cli command region list {allowed|denied}, enable output of region cmd via remote cli Jan 25, 2026
@mesher-de
Copy link

@mattzzw
Your logfile ‎meshcore-evo-fw.log‎ is part of this PR.
Is that intended?

@mattzzw
Copy link
Contributor Author

mattzzw commented Jan 25, 2026

Is that intended?

Nope, thanks for the heads up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants