mirror of
https://github.com/meshtastic/python.git
synced 2026-01-16 11:47:57 -05:00
Add owner to showInfo()
This commit is contained in:
@@ -162,10 +162,12 @@ class MeshInterface:
|
||||
|
||||
def showInfo(self):
|
||||
"""Show human readable summary about this object"""
|
||||
print(f"My info: {stripnl(MessageToJson(self.myInfo))}")
|
||||
|
||||
print(f"Owner: {self.getLongName()} ({self.getShortName()})")
|
||||
print(f"\nMy info: {stripnl(MessageToJson(self.myInfo))}")
|
||||
print("\nNodes in mesh:")
|
||||
for n in self.nodes.values():
|
||||
print(" " + stripnl(n))
|
||||
print(f" {stripnl(n)}")
|
||||
|
||||
def getNode(self, nodeId):
|
||||
"""Return a node object which contains device settings and channel info"""
|
||||
|
||||
Reference in New Issue
Block a user