Skip to content

SoftAP name not set properly #1151

Closed
Closed
@hyteoo

Description

@hyteoo

When in soft AP, it seems that the hostname and is ignored.
Ex.
esp
wifi

@mcspr

ESP_... comes from justwifi lib: https://github.com/xoseperez/justwifi/blob/c423f102d0ece574beac6b536f11cb692709763c/src/JustWifi.cpp#L52
If no SSID provided, it uses hostname: https://github.com/xoseperez/justwifi/blob/c423f102d0ece574beac6b536f11cb692709763c/src/JustWifi.cpp#L296-298

As Xose did mention, something funky must be happening to the settings. Only thing that makes sense if hostname is empty here / hostname key from eeprom settings returns nothing.

#if USE_PASSWORD
jw.setSoftAP(getSetting("hostname").c_str(), getSetting("adminPass", ADMIN_PASS).c_str());
#else
jw.setSoftAP(getSetting("hostname").c_str());
#endif

And looking at wifi listings only common thing I did notice that in all cases ESP APs are passwordless, which is likely happening because setSoftAP returns early with some condition failing.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions