connecting to ntp server using eps8266 and arduino.

samrudha:
I checked that program but #include <ESP8266WiFI.h> is for ESP8266 whereas I am using esp to connect arduino to internet by sending AT commands from arduino program.

it is an Arduino library and it takes a Client interface. WiFiEsp client implements the Client interface.

I offer you a library way. I can't help you if you like the AT commands