Skip to content

Instantly share code, notes, and snippets.

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.rssi);
wlanData = wlanData + "and is " + ( ? "open" : "closed");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment