ESP 01 and Arduino UNO Can't Communicate

Thank you for the advice and links you gave me. Now I can connect my ESP 01 to my cellphone's hotspot.

Connection established!
IP address: 192.168.43.27

with this config:

esp Arduino
TX --- TX
RX --- RX
RST --- VCC
GPIO0 - GND
VCC --- VCC
GND --- GND

and my Arduino UNO's RST is on GND.

I used this code in my ESP 01.

#include <ESP8266WiFi.h>        // Include the Wi-Fi library

const char* ssid     = "SSID";
const char* password = "password";     // The password of the Wi-Fi network

void setup() {
  Serial.begin(115200);         // Start the Serial communication to send messages to the computer
  delay(10);
  Serial.println('\n');
  
  WiFi.begin(ssid, password);             // Connect to the network
  Serial.print("Connecting to ");
  Serial.print(ssid); 
  Serial.println(" ...");

  int i = 0;
  while (WiFi.status() != WL_CONNECTED) { // Wait for the Wi-Fi to connect
    delay(1000);
    Serial.print(++i); Serial.print(' ');
  }

  Serial.println('\n');
  Serial.println("Connection established!");  
  Serial.print("IP address:\t");
  Serial.println(WiFi.localIP());         // Send the IP address of the ESP8266 to the computer
}

void loop() { }

Did I do something wrong about it? Am I on the right path now?