RIDDHIDIPTA PAL
RIDDHIDIPTA PAL

Reputation: 1

How to connect a XIA0_ESP32S2 seeed board to a mobile hotspot?

This is the code I have written to connect my Xiao Seeed ESP32-S3 board to a mobile hotspot

#include <WiFi.h>

const char* ssid = "rrrr";
const char* password = "rrrrrrrr";

void setup() {
  Serial.begin(115200);
  delay(1000);

  Serial.println("Connecting to WiFi...");
  WiFi.begin(ssid, password);

  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
    WiFi.disconnect();
    WiFi.begin(ssid, password);
  }

  Serial.println("");
  Serial.println("WiFi connected");
  Serial.print("IP address: ");
  Serial.println(WiFi.localIP());
}

void loop() {
  // Your main code here
}

This code keeps giving errors as follows in the serial monitor

.E (12930) wifi:sta is connecting, return error
.E (13431) wifi:sta is connecting, return error
.E (13932) wifi:sta is connecting, return error
.
.

These are the hotspot settings I am using-

https://raw.githubusercontent.com/CodingLife1024/image-storage/refs/heads/main/hotspot.jpg

Upvotes: 0

Views: 17

Answers (0)

Related Questions