Fix device intelligence tracking for WiFi and Bluetooth

The generateDeviceId function only handled POCSAG, FLEX, and sensor
protocols. Added handlers for:
- WiFi-AP: generates WIFI_AP_<bssid>
- WiFi-Client: generates WIFI_CLIENT_<mac>
- Bluetooth/BLE: generates BT_<mac>

This fixes device tracking in the intelligence section for WiFi
and Bluetooth scans.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
James Smith
2025-12-21 14:34:23 +00:00
parent be34b87036
commit 225cdd5cd9

View File

@@ -2797,6 +2797,12 @@ HTML_TEMPLATE = '''
return 'PAGER_' + (data.address || 'UNK');
} else if (data.protocol === 'FLEX') {
return 'FLEX_' + (data.address || 'UNK');
} else if (data.protocol === 'WiFi-AP') {
return 'WIFI_AP_' + (data.address || 'UNK').replace(/:/g, '');
} else if (data.protocol === 'WiFi-Client') {
return 'WIFI_CLIENT_' + (data.address || 'UNK').replace(/:/g, '');
} else if (data.protocol === 'Bluetooth' || data.protocol === 'BLE') {
return 'BT_' + (data.address || 'UNK').replace(/:/g, '');
} else if (data.model) {
// 433MHz sensor
const id = data.id || data.channel || data.unit || '0';