hello, is serial communication protocol betwen pc and mcu conected by cable, the same if i use an esp8266 module instead of an arduino ?
Yes, if you mean that you are using the USB to serial interface. However, if you want to connect a serial interface to the pins of an ESP8266 or an AVR based Arduino then don't forget that they run at different voltages
just trought the usb port thought the ftdi chip i guess
Then the default serial protocol is the same, but you can use a different one if required, and the different voltages are not a problem
Do you have a problem that you are trying to solve ?
No ,I just asked i would like to make a c++ program to comunicate trought serial to an esp8266