#include "WiFi.h"
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd (0x27, 16,2);
void setup() {
// put your setup code here, to run once:
lcd.init();
lcd.backlight();
}
void loop() {
// put your main code here, to run repeatedly:
WiFi.scanNetworks();
String data = WiFi.SSID(0);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("WiFi name: ");
lcd.setCursor(0,1);
lcd.print(data);
delay(100);
}
Loading
esp32-devkit-v1
esp32-devkit-v1