$ meshtastic --port /dev/ttyUSB0 --info
<...snip...>
Nodes in mesh: {'num': 2885175728, 'user': {'id': '<REDACTED>', 'longName': 'ttgo 1.1', 'shortName': 't1', 'macaddr': '24:62:ab:f8:49:b0', 'hwModel': 'TBEAM'}, 'position': {'latitudeI': <REDACTED>, 'longitudeI': -<REDACTED>, 'altitude': <REDACTED>, 'time': 1673813417, 'latitude': <REDACTED>, 'longitude': <REDACTED>}, 'lastHeard': 1673813630, 'deviceMetrics': {}} {'num': 546312913, 'user': {'id': '<REDACTED>', 'longName': 'RAK4631', 'shortName': 'RK46', 'macaddr': 'f1:fc:20:90:12:d1', 'hwModel': 'RAK4631'}, 'position': {'latitudeI': <REDACTED>, 'longitudeI': <REDACTED>, 'altitude': <REDACTED>, 'latitude': <REDACTED>, 'longitude': <REDACTED>}, 'snr': 11.25, 'lastHeard': 1673813406, 'deviceMetrics': {'batteryLevel': 60, 'voltage': 3.829}, 'lastReceived': {'from': 546312913, 'to': 4294967295, 'id': 1849607190, 'rxTime': 1673813406, 'rxSnr': 11.25, 'hopLimit': 3, 'rxRssi': -73, 'fromId': '!<REDACTED>', 'toId': '^all'}, 'hopLimit': 3}
<...snip...>
Tried in Meshtastic version 2.0.5 and 2.0.9
Example:
The rest of the value outputs of
--infoare valid JSON. Are the nodes intentionally invalid?Two changes would have to be made around here, making the overall
nodesan array and I'm guessing use something like the existingMessageToJsonto format the node info itself as JSON (single quotes instead of double).