fix --info

This commit is contained in:
geeksville
2020-05-12 17:38:56 -07:00
parent 39872ee86b
commit 0f6f791d14
2 changed files with 10 additions and 3 deletions

10
.vscode/launch.json vendored
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"]
}
]
}

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)