From 020d2093f0c935de83a4fc1f49389ef1ca1c9d81 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Mon, 21 Dec 2020 14:46:52 +0800 Subject: [PATCH] add warning about is_router --- README.md | 6 ++++++ meshtastic/__main__.py | 5 +++++ proto | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 62a5eaf..8cedee2 100644 --- a/README.md +++ b/README.md @@ -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): ``` diff --git a/meshtastic/__main__.py b/meshtastic/__main__.py index 3d265fc..135cd94 100644 --- a/meshtastic/__main__.py +++ b/meshtastic/__main__.py @@ -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 diff --git a/proto b/proto index 020ef9e..3c06a59 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 020ef9eea8129756a0b45be5a3900b0355be4451 +Subproject commit 3c06a5962b35f3959f17b9120802bf286dba01c7