Skip to content

Can't connect to WiFi networks that contain a ' #9472

@assman

Description

@assman

Board

ESP32 S3

Device Description

It's an ESP32 S3 WROOM from Freenove. It's got 2 USB C ports, one camera connector. https://store.freenove.com/products/fnk0090

Hardware Configuration

None

Version

v2.0.14

IDE Name

Arduino IDE

Operating System

macOS 14.4.1 Sonoma

Flash frequency

240 MHz (WiFi)

PSRAM enabled

no

Upload speed

115200

Description

My home WiFi SSID is Varun's Network. First I used the WifiScan example from the Arduino IDE to see if the board is able to see my network and ensure that it is in range, which it is. Then I use the following code to connect the board to my WiFi. Unfortunately it doesn't work and the board keeps throwing a WiFi.status() of 1 (WL_NO_SSID_AVAIL). I changed my SSID to one without the ' character and it is able to connect without any issues.

#include<WiFi.h>

const char *ssid = "Varun's Network";

const char *password = "varunvarun";
        
void initWiFi() {
  WiFi.mode(WIFI_STA);
  WiFi.begin(ssid, password);
  Serial.print("Connecting to WiFi ");
  Serial.print(ssid);
  while (WiFi.status() != WL_CONNECTED) {
    Serial.print('.');
    Serial.print(WiFi.status());
    delay(1000);
  }
  Serial.println(WiFi.localIP());
}

void setup() {
  Serial.begin(115200);
  initWiFi();
  Serial.print("RRSI: ");
  Serial.println(WiFi.RSSI());
}

void loop() {
  // put your main code here, to run repeatedly:
}

Sketch

#include<WiFi.h>

const char *ssid = "Varun's Network";

const char *password = "varunvarun";
        
void initWiFi() {
  WiFi.mode(WIFI_STA);
  WiFi.begin(ssid, password);
  Serial.print("Connecting to WiFi ");
  Serial.print(ssid);
  while (WiFi.status() != WL_CONNECTED) {
    Serial.print('.');
    Serial.print(WiFi.status());
    delay(1000);
  }
  Serial.println(WiFi.localIP());
}

void setup() {
  Serial.begin(115200);
  initWiFi();
  Serial.print("RRSI: ");
  Serial.println(WiFi.RSSI());
}

void loop() {
  // put your main code here, to run repeatedly:
}

Debug Message

NA

Other Steps to Reproduce

I have checked for similar existing issues within this repo and outside, could not find anything with a solution. I want to be able to connect to networks with special characters because I can't control what people name their SSIDs.

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions