ESP8266 and Arduino mini pro

Hello,
I have ESP8266 (ESP-01) connected to the seriál port of the arduino mini pro. I want start basic communication between ESP and arduino. Is enough send in seriál monitor AT command or is necessary somethink more ? Can you provide please sample code ?
Thank you
Alex

I have ESP8266 (ESP-01) connected to the seriál port of the arduino mini pro.

Then you should NOT also be using the hardware serial port to talk to the PC, so that question is irrelevant.

Can you provide please sample code ?

To do what?