Skip to content

Is 'WL_IDLE_STATUS' correct if 'STA_GOT_IP' ? #1086

Closed
@mijnmodelbaan

Description

@mijnmodelbaan

if(WiFiSTAClass::status() == WL_IDLE_STATUS) {

I'm trying to create a static IP address on an ESP32 WROOM, but IMHO the ESP is not IDLE anymore if it has gotten an IP address. Please correct me if I'm wrong about this but I've been searching for some kind of time table to find out when exactly the IDLE status is, but couldn't find it. Creating a dynamic IP causes no problem (working correctly) but creating a static IP gives a problem in WiFiGeneric.cpp, line 319.

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