From 0f6f791d146c774d1be008dabfe66a8a21dc08c9 Mon Sep 17 00:00:00 2001 From: geeksville Date: Tue, 12 May 2020 17:38:56 -0700 Subject: [PATCH] fix --info --- .vscode/launch.json | 10 +++++++++- meshtastic/__main__.py | 3 +-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 5d04d48..16b4c5d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,12 +5,20 @@ "version": "0.2.0", "configurations": [ { - "name": "Python: Module", + "name": "meshtastic BLE", "type": "python", "request": "launch", "module": "meshtastic", "justMyCode": false, "args": ["--debug", "--ble", "--device", "24:62:AB:DD:DF:3A"] + }, + { + "name": "meshtastic info", + "type": "python", + "request": "launch", + "module": "meshtastic", + "justMyCode": true, + "args": ["--debug", "--info"] } ] } diff --git a/meshtastic/__main__.py b/meshtastic/__main__.py index c8cb196..4e422fa 100644 --- a/meshtastic/__main__.py +++ b/meshtastic/__main__.py @@ -42,8 +42,7 @@ def onConnected(interface): print(interface.radioConfig) print("Nodes in mesh:") for n in interface.nodes.values(): - asDict = google.protobuf.json_format.MessageToJson(n) - print(asDict) + print(n) except Exception as ex: print(ex)