Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Rapid http get polling causes crash when host disconnected #16

Closed
@TLS1000

Description

@TLS1000

Hi, I'm polling an energy meter with your library, and it works fine, however when I disconnect the host device the timeout mechanism doesn't seem te work and the ESP32 crashes

I used the 'assynchttprequestESP' with my host (energy meter) example, changed the request frequency to 2s, and tried to set the timeout to 1s by '#define DEFAULT_RX_TIMEOUT 1 // Seconds for timeout '

Timeout doesn't seem to do it's job, and also troubling is that it goes through the callbackhandler at some time before crashing and writes false values to my variables.

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    SupportLibrary supportquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions