Skip to content

Cleanup memory leak from webserver onNetworkConnected() #3

@paclema

Description

@paclema

It seems that there is a memory leak since the reconnection process is not that clean for the webserver client.

https://github.com/paclema/WebConfigServer/blob/main/src/WebConfigServer.h#L328

It should be introduced a stop and clean (only once, if the webserver client still runs) on the onNetworkDisconnected() callback.

https://github.com/paclema/WebConfigServer/blob/main/src/WebConfigServer.h#L346

Presumably, I could just configure once the webserver before starting the wifi connection as this example shows: NAPTCaptivePortal.ino

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