Skip to content

Unable to connect to ap with ssid of 32 characters length #3218

Closed
@jstammi

Description

@jstammi

#2746 # Hardware:
Board: ESP32-WROVER-B
Core Installation version: ??? (n/a)
IDE name: Platform.io
Flash Frequency: ??? (n/a)
PSRAM enabled: yes
Upload Speed: 115200
Computer OS: Windows 10

Description:

My ap's ssid is of 32 characters length, the max allowed AFAIK.

On connecting the serial console shows an error message: "[E][WiFiSTA.cpp:124] begin(): SSID too long or missing!"

WiFiSTA.cpp check length ssid > 31 ... seems to assume a trailing '\0'. But IMHO such is not enforced by the spec.

Sketch: (leave the backquotes for code formatting)

//Change the code below by your sketch
#include <Arduino.h>
#include <WiFi.h>

void setup() {
  Serial.begin(115200);
  Serial.println(WiFi.begin("123456789A123456789B123456789C12", "passphrase"));
}

void loop() {
}

### Debug Messages:
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:9232
load:0x40080400,len:6412
entry 0x400806a8
[E][WiFiSTA.cpp:124] begin(): SSID too long or missing!
4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions