device.device.wifi_info
Declaration
lua
device.wifi_info()
Description
Get current WiFi network info via
CNCopyCurrentNetworkInfo.Parameters
No parameters
Return Values
| Type | Description |
|---|---|
| table | {ssid=string} or {ssid=string, bssid=string} |
| nil | If not connected |
Example
lua
local w = device.wifi_info()
if w then sys.log("SSID: " .. w.ssid) end
Notes
BSSID may be nil from SCDynamicStore.