send config to esp8266 from arduino mega

I read about esp8266, and see that i can config it from another arduino, by sending AT command.
Can i use standart WiFi library to config esp8266 over "Arduino Mega" serial port ?

No. standard WiFi library is for the standard Arduino WiFi Shield. You can use WiFiEsp library with AT firmware or WiFi Link library with WiFi Link firmware

how about ?Arduino/libraries/ESP8266WiFi at master · esp8266/Arduino · GitHub

Nilab:
how about ?Arduino/libraries/ESP8266WiFi at master · esp8266/Arduino · GitHub

this is esp8266 Arduino core for writing sketches for the esp8266

I 'm will Try with "WiFiesp" library, thx :slight_smile: