diff --git a/meshtastic/mesh_interface.py b/meshtastic/mesh_interface.py index 053e8d36..2c1fce9d 100644 --- a/meshtastic/mesh_interface.py +++ b/meshtastic/mesh_interface.py @@ -247,10 +247,11 @@ def getTimeAgo(ts) -> Optional[str]: if not includeSelf and node["num"] == self.localNode.nodeNum: continue + mqtt_suffix = ' (MQTT)' if node.get('viaMqtt') else '' presumptive_id = f"!{node['num']:08x}" row = { "N": 0, - "User": f"Meshtastic {presumptive_id[-4:]}", + "User": f"Meshtastic {presumptive_id[-4:]}" + mqtt_suffix, "ID": presumptive_id, } @@ -258,7 +259,7 @@ def getTimeAgo(ts) -> Optional[str]: if user: row.update( { - "User": user.get("longName", "N/A"), + "User": user.get("longName", "N/A") + mqtt_suffix, "AKA": user.get("shortName", "N/A"), "ID": user["id"], "Hardware": user.get("hwModel", "UNSET"),