meshtastic / python

The Python CLI and API for talking to Meshtastic devices
https://meshtastic.org
379 stars 160 forks source link

Not sending requested config change over remote admin device #495

Closed isaacbentley closed 6 months ago

isaacbentley commented 7 months ago

Description When using the standalone CLI for Windows and pip installed for Linux using the --dest !<device ID> it's not setting the configuration as expected.

Reproduction steps

  1. Download https://github.com/meshtastic/python/releases/download/2.2.22/meshtastic_windows.
  2. Execute the downloaded file with the --dest parameter (via USB)
  3. Results in executing the commands such as --setlat and --setlon successfully but it configures the local device, not the remote device as targeted in the --dest command.

Notes Verified that I'm able to remote configure remote devices via IOS & Andriod applications.

rcarteraz commented 7 months ago

Description When using the standalone CLI for Windows and pip installed for linux using the --dest !<device ID> it's not setting the configuration as expected.

Reproduction steps

Download https://github.com/meshtastic/python/releases/download/2.2.22/meshtastic_windows. Execute the downloaded file with the --dest parameter (via USB), results in executing the commands such as --setlat and --setlon successfully but it cofingure the local device, not the remoe device as targeted in the --dest command.

Notes Verfied that I'm able to remote configure remote devices via IOS & Andriod applications.

I'm pretty sure that's expected behavior. If I recall --setlat and --setlon can't be used with the --dest command. --dest only works with --set and --get commands.

The docs page for this doesn't really make that clear. I'm working on an update for that page, I'll be sure to document it better.

isaacbentley commented 7 months ago

Thank you for the quick response! I'll try to update the location by your suggestion and update this comment

Update: Looks like I'm not able to update the lat/lon with the --set command due it not being in the LocalConfig and LocalModuleConfig list of attributes.

Update #2: For completeness for anyone stumbling on my comments, I saw a comment on a website that described that one could use the C# Meshtastic CLI client. This was successful, was able to remotely configure a device with a fixed position.

garthvh commented 6 months ago

Remote location configuration is not available as it would allow nodes to change each other's location