//Display wifi name on LCD screen
#include "WiFi.h"
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd (0x27, 16,2); //lcd is variable; 16 row and 2 column
void setup() {
lcd.init (); //initialize
lcd.backlight ();
}
void loop() {
WiFi.scanNetworks();//will return available Wifi names in the Wokwi platform.
String data = WiFi.SSID(0); //SSID-Service Set Identifier() that holds the name of your wireless network
lcd.clear(); //clear screen
lcd.setCursor (0, 0); ////set cursor on 0th row
lcd.print("WIFI name:");
lcd.setCursor (0, 1); //set cursor on 1st row
lcd.print(data);
delay (100);
}