Python CLI values differ from official docs

Hello,

I’m migrating nodes from 1.2 to 1.3 and I’m finding discrepancies in the official docs regarding the commands syntax (Meshtastic-python 1.3.29 beta).

Example:

meshtastic --set device.role Client (1)

returns this error message:

Connected to radio
device.role does not have an enum called Client, so you can not set it.
Choices in sorted order are:
CLIENT
CLIENT_MUTE
ROUTER
ROUTER_CLIENT
LocalConfig and LocalModuleConfig do not have attribute device.role.

while the command is accepted if “Client” is all in capitals:

meshtastic --set device.role CLIENT

Connected to radio
Set device.role to CLIENT
Writing modified preferences to device

and

meshtastic --set position.broadcast_smart_enabled false (2)

returns this error message:

Connected to radio
device.role does not have an enum called Client, so you can not set it.
Choices in sorted order are:
CLIENT
CLIENT_MUTE
ROUTER
ROUTER_CLIENT
LocalConfig and LocalModuleConfig do not have attribute device.role.

but in this case I still can’t find the correct capitalization…

Am I reading the docs correctly?

Cheers

All good catches, I updated these while doing some other cleanup, device and position docs have been updated, thanks!

1 Like