Skip to content

Commit 020d209

Browse files
committed
add warning about is_router
1 parent 0addac6 commit 020d209

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ Setting preference wait_bluetooth_secs to 28800
3535
Writing modified preferences to device...
3636
```
3737

38+
Or to set a node at a fixed position and never power up the GPS.
39+
40+
```
41+
meshtastic --setlat 25.2 --setlon -16.8 --setalt 120
42+
```
43+
3844
Or to configure an ESP32 based board to join a wifi network as a station (wifi support in the device code is coming soon):
3945

4046
```

meshtastic/__main__.py

+5
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,12 @@ def setRouter(interface, on):
8282
prefs = interface.radioConfig.preferences
8383
if on:
8484
print("Setting router mode")
85+
8586
prefs.is_router = True
87+
88+
# FIXME as of 1.1.24 of the device code, the following is all deprecated. After that release
89+
# has been out a while, just set is_router and warn the user about deprecation
90+
#
8691
prefs.is_low_power = True
8792
prefs.gps_operation = mesh_pb2.GpsOpMobile
8893

proto

Submodule proto updated from 020ef9e to 3c06a59

0 commit comments

Comments
 (0)