Skip to content

Unnecessary delay if deserializeJson fails #69

@niclask

Description

@niclask

Hi,

I was reading your code as I am considering using it for one of my projects. I spotted a delay in esp32FOTA::execHTTPcheck(...) that can cause problems for other people using you library. If deserializing JSON fails, it will halt the execution for 5 seconds. This will starve the execution of any other code and can lead to a critical failure (e.g. when controlling a motor).

See the code at:

delay(5000);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions