Skip to content

WebServer and DeepSleep #10

@piga

Description

@piga

I want to have WebServer for maybe 10 seconds or until I have clients sending requests and than I want DeepSleep for maybe 20 seconds. I have tried this but it's not working. I am sending only loop function.
void loop(void){ server.handleClient(); ESP.deepSleep(20e6); // 20e6 is 20 microseconds }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions