Skip to content

Can't connect to open network with empty string passphrase #5533

Closed
@frishrash

Description

@frishrash

When empty string is passed as passphrase:

newAP.passphrase = strdup("");

to WiFi.begin():

WiFi.begin(bestNetwork.ssid, bestNetwork.passphrase, bestChannel, bestBSSID);

My ESP8266 (Wemos D1 mini) can't connect to my open access point (OpenWRT).
ESP8266WiFiMulti::run() returns WL_DISCONNECTED with WiFiDisconnectReason of WIFI_DISCONNECT_REASON_NO_AP_FOUND.

When I change the passphrase to NULL everything works.

Metadata

Metadata

Assignees

No one assigned

    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