Skip to content

User is unable to define if WiFi.disconnect should null-ify SSID and Password or not #8689

Closed
@cziter15

Description

@cziter15

This issue is not really related to any board, but directly to the source code, using template is not necessary here.

The problem is that WiFi.disconnect function always set SSID and Password to NULL. On ESP32's version of Arduino, user can define if the config should be ever touched or not. When manually implementing reconnection, current state requires to store credentials externally between disconnect and connect method calls.

This should be unified somehow or at least eraseAP switch should be added to allow calling underlying methods without zeroing credentials.

Current workaround is calling wifi_station_disconnect directly.

https://github.com/espressif/arduino-esp32/blob/a5f03a86512b270be1080d7e7cb82e4fd71c9a1a/libraries/WiFi/src/WiFiSTA.cpp#L345

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