fix --info

This commit is contained in:
geeksville committed 2020-05-12 17:38:56 -07:00
1 parent 39872ee86b
commit 0f6f791d14
2 files changed
+10 -3

No files matched your search

+9 -1
View File
@@ -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"]
}
]
}
+1 -2
View File
@@ -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)