diff --git a/Python/azure_iot_hub_list_devices.py b/Python/azure_iot_hub_list_devices.py index b622e26..1405c9b 100644 --- a/Python/azure_iot_hub_list_devices.py +++ b/Python/azure_iot_hub_list_devices.py @@ -30,6 +30,7 @@ for twin in query_result.items: "device_id": twin.device_id, "number": twin.tags.get("number") if twin.tags else None, "site": twin.tags.get("site") if twin.tags else None, + "subsite": twin.tags.get("subsite") if twin.tags else None, "connection_state": twin.connection_state, "last_activity_time": twin.last_activity_time }) @@ -60,4 +61,4 @@ if "last_activity_time" in df_sorted.columns: ) -df_sorted.to_excel("iot_devices.xlsx", index=False) \ No newline at end of file +df_sorted.to_excel("iot_devices_20260204.xlsx", index=False) \ No newline at end of file