我有位於/Users/admin/Desktop/wi-fi.txt一個文件,其中包含有如下... 的Wi-Fi:查找鍵/值嵌套的NSDictionary
Software Versions:
CoreWLAN: 4.3.2 (432.47)
CoreWLANKit: 3.3.2 (332.36)
Menu Extra: 9.3.2 (932.35)
System Information: 9.0 (900.8)
IO80211 Family: 6.3 (630.35)
Diagnostics: 3.0 (300.40)
AirPort Utility: 6.3.2 (632.3)
Interfaces:
en1:
Card Type: AirPort Extreme (0x14E4, 0x10E)
Firmware Version: Broadcom BCM43xx 1.0 (5.106.98.100.22)
MAC Address: a8:86:dd:a9:6d:13
Locale: APAC
Country Code: IN
Supported PHY Modes: 802.11 a/b/g/n
Supported Channels: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165
Wake On Wireless: Supported
AirDrop: Supported
Status: Connected
Current Network Information:
DDL2:
PHY Mode: 802.11n
BSSID: c8:d7:19:62:1e:46
Channel: 6
Country Code: IN
Network Type: Infrastructure
Security: WPA2 Personal
Signal/Noise: -59 dBm/-86 dBm
Transmit Rate: 52
MCS Index: 11
Other Local Wi-Fi Networks:
DDL:
PHY Mode: 802.11g
BSSID: 00:1b:2f:df:04:bc
Channel: 10
Network Type: Infrastructure
Security: WEP
Signal/Noise: -57 dBm/-84 dBm
DDL3:
PHY Mode: 802.11n
BSSID: 28:c6:8e:dc:c8:db
Channel: 3
Network Type: Infrastructure
Security: WPA2 Personal
Signal/Noise: -56 dBm/-85 dBm
DDL4:
PHY Mode: 802.11n
BSSID: 40:16:7e:a2:3c:b4
Channel: 149,+1
Network Type: Infrastructure
Security: WPA2 Personal
Signal/Noise: -50 dBm/-92 dBm
DDL4:
PHY Mode: 802.11n
BSSID: 40:16:7e:a2:3c:b0
Channel: 6
Network Type: Infrastructure
Security: WPA2 Personal
Signal/Noise: -47 dBm/-81 dBm
NETGEAR:
PHY Mode: 802.11g
BSSID: 00:24:b2:bc:32:62
Channel: 1
Network Type: Infrastructure
Security: WEP
Signal/Noise: -84 dBm/-84 dBm
RS001:
PHY Mode: 802.11g
BSSID: b0:48:7a:c9:d8:f6
Channel: 11
Country Code: IN
Network Type: Infrastructure
Security: WPA Personal
Signal/Noise: -44 dBm/-90 dBm
RS002:
PHY Mode: 802.11g
BSSID: b0:48:7a:c9:d9:04
Channel: 12
Country Code: IN
Network Type: Infrastructure
Security: WPA Personal
Signal/Noise: -51 dBm/-90 dBm
RS003:
PHY Mode: 802.11g
BSSID: 00:1f:33:b4:99:2c
Channel: 11
Network Type: Infrastructure
Security: WPA Personal
Signal/Noise: -67 dBm/-90 dBm
fortinet_captive_portal:
PHY Mode: 802.11n
BSSID: 1a:5b:0e:39:57:b2
Channel: 6
Country Code: IN
Network Type: Infrastructure
Security: None
Signal/Noise: -85 dBm/-81 dBm
testlab:
PHY Mode: 802.11n
BSSID: 08:5b:0e:39:57:b2
Channel: 6
Country Code: IN
Network Type: Infrastructure
Security: WPA/WPA2 Personal
Signal/Noise: -83 dBm/-81 dBm
我想要獲得有關每個WiFi網絡名稱及其噪音/強度的信息。任何機構都可以告訴我該怎麼做。
難道你不應該問是否有API來獲取此信息,而不是使用這種笨拙,緩慢和脆弱的解決方案嗎?或者您是否已經嘗試查找API並失敗? – trojanfoe
我知道API objectForKey,但我不知道如何在嵌套的情況下使用它。 –