Send data to server using ESP8266, while bypassed by arduino

Hi. I have bypassed ESP8266 using arduino UNO, and I've managed to program ESP8266 directly using Arduino IDE. Now I need to send data to a server in my program, using AT commands.

Here's the wiring I have used:

ESP ......... Arduino UNO
RX => RX (port number 0)
TX => TX (port number 1)
GND => GND
CH_PD => 5V
VCC => 5V
GPIO0 => GND

I grounded GPIO0 so I can program ESP using Arduino IDE, and that is working successfully. The problem is, how do I send data to server using AT commands? Should I declare a new SoftwareSerial port and assign it to RX and TX of arduino? And then how should I send AT commands and test if it works.

Thanks.

Should I declare a new SoftwareSerial port and assign it to RX and TX of arduino?

For what purpose? Is the Arduino just going to get data from the Serial Monitor app and pass it to the ESP?

And then how should I send AT commands and test if it works.

Well, it would depend on where you expect send them from, and how you expect them to get to the ESP.

PaulS:
For what purpose? Is the Arduino just going to get data from the Serial Monitor app and pass it to the ESP?

Yes, Arduino is just acting like a bridge.

Then, you could just connect the ESP to pins 0 and 1, and run an empty sketch - nothing in setup() and nothing in loop().

If you uploaded a sketch into esp8266 it replaced the AT firmware. Use ESP8266WiFi library

If you are using an ESP-01 like the one in the picture, it is a 3.3v device.
esp8266-serial-esp-01-wifi-wireless-transceiver-module-500x500.jpg

You are going to need to use a bi-directional logic level converter like this one so you don't damage your unit. The UNO is a 5V device.

Your wiring is also not right.
ESP Tx <==>logic level converter<==> Arduino Rx
ESP RX <==>logic level converter<==> Arduino Tx
ESP GND <==> Arduino GND
ESP CH_PD => 3.3V (not from the UNO)
ESP VCC => 3.3V (not from the UNO)

esp8266-serial-esp-01-wifi-wireless-transceiver-module-500x500.jpg

Juraj:
If you uploaded a sketch into esp8266 it replaced the AT firmware. Use ESP8266WiFi library

So now I can't use AT commands, right? I need to upload my sketch to ESP8266, If I use ESP8266WiFi library, can I send data through WiFi (considering AT commands are not available)?

mta9896:
So now I can't use AT commands, right? I need to upload my sketch to ESP8266, If I use ESP8266WiFi library, can I send data through WiFi (considering AT commands are not available)?

the ESP8266WiFi has the same functions like the Arduino WiFi library (which is a clone of the Ethernet library)