Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend usage of std::function on all the platforms where it's available #993

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alranel
Copy link

@alranel alranel commented Jan 25, 2023

At this point in time, C++11 is available on most Arduino platforms and not just on ESP8266 and ESP32.
With this pull request, the ability to supply lambdas (including object methods) to setCallback() instead of plain function pointers is extended automatically to all the platforms which provide support for std::function. :)

@imbeacon
Copy link

Hi, faced the issue with the same reason, on Arduino Nano Connect, based on RP2040.
@knolleary, please add ability to use std::function as callbacks not just for ESP-based boards.

@manchoz
Copy link

manchoz commented Feb 21, 2023

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants