meshtastic / python

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

No option to configure static IP due lack of attributes #700

Closed D4rk4 closed 1 month ago

D4rk4 commented 1 month ago

By the source code settings must be

meshtastic --set network.ipv4_config.ip 1684302082 --set network.ipv4_config.dns 168430090 --set config.network.ipv4_config.gateway 1684302081 --set config.network.ipv4_config.subnet 4294967040

But some of them were rejected by meshtastic Python:

LocalConfig and LocalModuleConfig do not have attribute config.network.ipv4_config.subnet. LocalConfig and LocalModuleConfig do not have attribute config.network.ipv4_config.gateway.

ianmcorvidae commented 1 month ago

the ones with config should not have that prefix; all four should start with network.ipv4_config