Esp32 cam not connect to wifi

I have an esp32 cam module and I want to pull data from the internet through it. I have a websocket server. I want to connect to this server and pull data. Is this possible with Esp32 cam? If not, which ESP card should I buy?

I am using Arduino uno. I connected the Esp32 camera to Arduino Uno. I also couldn't connect to my own wireless network using the esp32 camera. I communicate with AT commands. It's an esp32 camera with Arduino uno, but !esp.find("OK") is not working so I don't get the OK message.I got Could not communicate with esp32

here is my code;

#include <SoftwareSerial.h>

String ssid= "*************";
String password= "********";

SoftwareSerial esp(0, 1); // rx and tx pin

void setup() {
Serial.begin(9600);
esp.begin(115200);
esp.begin(9600);
esp.println("AT");
Serial.println("sent AT");
while(!esp.find("OK")){
esp.println("AT");
Serial.println("Could not communicate with esp32");
}
Serial.println("got OK message");
esp.println("AT+CWMODE=1");
while(!esp.find("OK")){
esp.println("AT+CWMODE=1");
Serial.println("set client");
}

Serial.println("connecting...");
esp.println("AT+CWJAP=""+ssid+"",""+password+""");
while(!esp.find("OK"));
Serial.println("Connect to Wifi.");
delay(1000);

}

void loop() {

}

Hi @felix1903.

Do you have a specific reason for using two boards in your project? I ask because this adds a significant amount of complexity compared to just using the ESP32-CAM by itself. The Uno is a great board and perfect for many projects, but for this particular project maybe it is not needed.

Does your ESP32-CAM have a USB socket? Usually we buy them as a combination of the board that has the ESP32 microcontroller and the camera connected to a "motherboard" that has the USB chip and socket. With that "motherboard", the ESP32-CAM becomes a standalone Arduino board you can upload sketches to just the same as you do with an Uno.

Pins 0 and 1 on the UNO R3 board are used by Serial for communication with your computer. So it doesn't make sense to also use those pins with the SoftwareSerial library.

Yes, there is a reason. I am building a 4wd car with Arduino Uno. I use distance sensor, speed sensor, motor driver and most things. My goal is to control my car via the website on the internet with websocket. I plugged the Rx and Tx pins into any port except 0 and 1 and used SoftwareSerial, but the result is still the same.

This part is silly. You configure the SoftwareSerial library to communicate at 115200 baud, and then immediately reconfigure it to use 9600 baud. So the first line is pointless.

Is the AT firmware on the ESP32-CAM configured to communicate at 9600, or at 115200 baud?

I forgot to put the first line in a comment line. I do not use both at the same time. I wrote it there to indicate that I tried two different boundrates. One of the two lines becomes a comment line.