-
-
Save sanfx/86f98516bf95ccaa81322976bce7ed39 to your computer and use it in GitHub Desktop.
function returns nearby visible wifi hotspots
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String* getWifiHotspots() { | |
// String* arr = new String[]; | |
String arr[100]; | |
Serial.print("Scan start ... "); | |
int n = WiFi.scanNetworks(); | |
for (int i = 0; i < n; i++) | |
{ | |
arr[i] = WiFi.SSID(i).c_str(); | |
} | |
return arr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment