char* ssid = "Wokwi-GUEST";

char txt[15]; 
int i; 
int Status=0;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Hello, ESP32!");

  if(Serial.available()>0) {
    i=0;
    while(Serial.available()>0)   //if serial available
    { char inchar=Serial.read();
      txt[i]=inchar; // add char to txt string
      i++;// increment to where to write next
      txt[i]='\0'; //null termination
    }    
    ssid = txt;
  // Serial.print(txt);    
  // check();
  } 

}

void loop() {
  Serial.println(ssid);
  delay(2000); // this speeds up the simulation
}
esp:VIN
esp:GND.2
esp:D13
esp:D12
esp:D14
esp:D27
esp:D26
esp:D25
esp:D33
esp:D32
esp:D35
esp:D34
esp:VN
esp:VP
esp:EN
esp:3V3
esp:GND.1
esp:D15
esp:D2
esp:D4
esp:RX2
esp:TX2
esp:D5
esp:D18
esp:D19
esp:D21
esp:RX0
esp:TX0
esp:D22
esp:D23