Add SQL query for last connected times in wifi_networks (#37919)

Added example SQL query to discover last connected times for WiFi
networks highlighting new columns.

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
This commit is contained in:
Brock Walters
2026-02-04 17:40:34 -06:00
committed by GitHub
co-authored by Eric
parent cddefbf835
commit f0bfff2b6c
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -29781,7 +29781,7 @@
"evented": false,
"cacheable": true,
"notes": "",
"examples": "Find WiFi networks configured on Macs that are unencrypted and require a\ncaptive portal. This can be useful to understand how much people use laptops\nin hotels, airports and other environments, and is a good indicator that tools\nsuch as DNS-over-HTTPS would improve privacy of connectivity.\n\n```\nSELECT network_name FROM wifi_networks WHERE security_type='Open' AND captive_portal='1';\n```",
"examples": "Find WiFi networks configured on Macs that are unencrypted and require a\ncaptive portal. This can be useful to understand how much people use laptops\nin hotels, airports and other environments, and is a good indicator that tools\nsuch as DNS-over-HTTPS would improve privacy of connectivity.\n\n```\nSELECT network_name FROM wifi_networks WHERE security_type='Open' AND captive_portal='1';\n```\n\nDiscover last connected times for WiFi networks:\n\n```\nSELECT network_name,last_connected,last_connected_automatic,last_connected_manual\nFROM wifi_networks\nORDER BY \nCOALESCE(last_connected, 0) \nDESC\nLIMIT 10;\n```",
"columns": [
{
"name": "ssid",
+11
View File
@@ -9,3 +9,14 @@ examples: |-
```
SELECT network_name FROM wifi_networks WHERE security_type='Open' AND captive_portal='1';
```
Discover last connected times for WiFi networks:
```
SELECT network_name,last_connected,last_connected_automatic,last_connected_manual
FROM wifi_networks
ORDER BY
COALESCE(last_connected, 0)
DESC
LIMIT 10;
```