Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# Add files or directories matching the regex patterns to the blacklist. The
# regex matches against base names, not paths.
ignore-patterns=mqtt_pb2.py,channel_pb2.py,environmental_measurement_pb2.py,admin_pb2.py,radioconfig_pb2.py,deviceonly_pb2.py,apponly_pb2.py,remote_hardware_pb2.py,portnums_pb2.py,mesh_pb2.py,storeforward_pb2.py
ignore-patterns=mqtt_pb2.py,channel_pb2.py,environmental_measurement_pb2.py,admin_pb2.py,radioconfig_pb2.py,deviceonly_pb2.py,apponly_pb2.py,remote_hardware_pb2.py,portnums_pb2.py,mesh_pb2.py,storeforward_pb2.py,cannedmessages_pb2.py



Expand Down
7 changes: 7 additions & 0 deletions meshtastic/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ def onConnected(interface):
closeNow = True
interface.getNode(args.dest).reboot()

if args.shutdown:
closeNow = True
interface.getNode(args.dest).shutdown()

if args.sendtext:
closeNow = True
channelIndex = 0
Expand Down Expand Up @@ -803,6 +807,9 @@ def initParser():
parser.add_argument(
"--reboot", help="Tell the destination node to reboot", action="store_true")

parser.add_argument(
"--shutdown", help="Tell the destination node to shutdown", action="store_true")

parser.add_argument(
"--reply", help="Reply to received messages",
action="store_true")
Expand Down
188 changes: 9 additions & 179 deletions meshtastic/admin_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 8 additions & 46 deletions meshtastic/apponly_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading