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)