mirror of
https://github.com/meshtastic/python.git
synced 2026-01-03 05:17:55 -05:00
fix --info
This commit is contained in:
10
.vscode/launch.json
vendored
10
.vscode/launch.json
vendored
@@ -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"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user