mirror of
https://github.com/meshtastic/meshtastic.git
synced 2025-02-02 08:42:11 -08:00
print all localConfig
This commit is contained in:
parent
0bbc398ba3
commit
11204017a5
|
@ -20,13 +20,13 @@ interface = meshtastic.serial_interface.SerialInterface()
|
|||
interface.sendText("hello mesh")
|
||||
|
||||
ourNode = interface.getNode('^local')
|
||||
print(f'Our node preferences:{ourNode.localConfig.position.gps_update_interval}')
|
||||
print(f'Our node preferences:{ourNode.localConfig}')
|
||||
|
||||
# update a value
|
||||
print('Changing a preference...')
|
||||
ourNode.localConfig.position.gps_update_interval = 60
|
||||
|
||||
print(f'Our node preferences now:{ourNode.localConfig.position.gps_update_interval}')
|
||||
print(f'Our node preferences now:{ourNode.localConfig}')
|
||||
ourNode.writeConfig("position")
|
||||
|
||||
interface.close()
|
||||
|
|
Loading…
Reference in a new issue