I have connected this device with the wifi earlier. But I deleted those apps and when uploaded the code again it automatically connected to the previous wifi network and show that message on the serial monitor.;
Are you wanting to connect to a different network? In the Arduino IDE there is a setting to upload “sketch only” try changing that to “sketch and WiFi credentials” or “all”.