@shankar Like I said before, can you check a sample programme with NodeMCU.

try this basic sketch https://www.hackster.io/Salmanfarisvp/webserverblink-using-nodemcu-26e1ed