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