From 47b5e03bbbd7f00394b84874a6d92b6d39813cce Mon Sep 17 00:00:00 2001 From: Smittix Date: Thu, 8 Jan 2026 14:32:41 +0000 Subject: [PATCH] Add debug logging for WiFi client card issues Temporary console.log statements to diagnose why clients are not appearing in the device list. Co-Authored-By: Claude Opus 4.5 --- templates/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index f863630..c987640 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4864,6 +4864,7 @@ // Handle discovered WiFi client (called from batched update) function handleWifiClientImmediate(client) { + console.log('handleWifiClientImmediate:', client); const isNew = !wifiClients[client.mac]; wifiClients[client.mac] = client; @@ -5196,8 +5197,12 @@ // Add WiFi client card to device list function addWifiClientCard(client, isNew) { + console.log('addWifiClientCard called:', client.mac, 'isNew:', isNew); const deviceList = document.getElementById('wifiDeviceListContent'); - if (!deviceList) return; + if (!deviceList) { + console.error('wifiDeviceListContent not found!'); + return; + } // Remove placeholder if present const placeholder = deviceList.querySelector('div[style*="text-align: center"]');