Skip to content

Make WiFi.onEvent a std::function #2108

Closed
@marvinroger

Description

@marvinroger

I would like to use a method bound to an instance of a class with WiFi.onEvent(), so the callback needs to be a std::function. But this would cause an issue in removeEvent, as two std::functions cannot be compared for equality. I don't know how to fix this.

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