mirror of
https://github.com/meshtastic/python.git
synced 2026-02-18 14:49:24 -05:00
add warning about is_router
This commit is contained in:
@@ -35,6 +35,12 @@ Setting preference wait_bluetooth_secs to 28800
|
||||
Writing modified preferences to device...
|
||||
```
|
||||
|
||||
Or to set a node at a fixed position and never power up the GPS.
|
||||
|
||||
```
|
||||
meshtastic --setlat 25.2 --setlon -16.8 --setalt 120
|
||||
```
|
||||
|
||||
Or to configure an ESP32 based board to join a wifi network as a station (wifi support in the device code is coming soon):
|
||||
|
||||
```
|
||||
|
||||
@@ -82,7 +82,12 @@ def setRouter(interface, on):
|
||||
prefs = interface.radioConfig.preferences
|
||||
if on:
|
||||
print("Setting router mode")
|
||||
|
||||
prefs.is_router = True
|
||||
|
||||
# FIXME as of 1.1.24 of the device code, the following is all deprecated. After that release
|
||||
# has been out a while, just set is_router and warn the user about deprecation
|
||||
#
|
||||
prefs.is_low_power = True
|
||||
prefs.gps_operation = mesh_pb2.GpsOpMobile
|
||||
|
||||
|
||||
2
proto
2
proto
Submodule proto updated: 020ef9eea8...3c06a5962b
Reference in New Issue
Block a user