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:
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user