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 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-08 14:32:41 +00:00
parent 556ca59a99
commit 47b5e03bbb

View File

@@ -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"]');