Created
November 4, 2017 09:24
-
-
Save mims92/1552db08d2edd9c4e421734bf1f7273a to your computer and use it in GitHub Desktop.
ESP8266 - C - Scan Wifi Networks
This file contains 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
#include "ESP8266WiFi.h" | |
void setup() { | |
Serial.begin(115200); | |
int numberOfNetworks = WiFi.scanNetworks(); | |
for(int i = 0; i < numberOfNetworks; i++){ | |
Serial.print("Network name: "); | |
Serial.println(WiFi.SSID(i)); | |
Serial.print("Signal strength: "); | |
Serial.print(WiFi.RSSI(i)); | |
Serial.println("dB"); | |
Serial.println("======================="); | |
} | |
Serial.print("End."); | |
} | |
void loop() {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment