Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Electric Imp imp API imp.scanwifinetworks() example code
// Use imp.scanwifinetworks() in synchronous mode
local wlans = imp.scanwifinetworks();
foreach (wlan in wlans) {
local wlanData = format("WLAN '%s' is operating on channel %u (current RSSI: %i) ", wlan.ssid, wlan.channel, wlan.rssi);
wlanData = wlanData + "and is " + (wlan.open ? "open" : "closed");
server.log(wlanData);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment