Skip to content

Watchdog didn't work or i cannot use it? #3785

@martinius96

Description

@martinius96

#ISSUE
@igrr
Hello there, i tried these ESP. functions for watchdog but i dont know how it works.. I put in setup that:
ESP.wdtEnable(WDTO_2S);
At the end of loop i take that:
ESP.wdtFeed();
My loop working time is circa 6 seconds for one loop. I enabled wdt for 2 seconds and it didnt reset my NodeMCU v3 Lolin. I only want to reset my board to see if it is working if code is running more than 2 seconds.. Where is problem? Maybe i bad think about how it functions I want that: if my board lags (stops working) it will reset my board automatically. I am using HTTPS requests to webpage (IoT house) for upload and download values and full automatization. It takes 6 seconds together. Thanks for help! #

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