working example of callback with date passing inside and outside for using

This commit is contained in:
Dmitry Borisenko
2020-08-25 01:55:43 +03:00
parent ce7c550410
commit c11983003b
3 changed files with 14 additions and 18 deletions

View File

@@ -77,19 +77,13 @@ void setup() {
async = new AsyncActions();
//async->setCallback([&](void*) {
//
//
//});
async->setCallback([]() {
Serial.println("123");
});
async->setCallback([](const String str) {
Serial.println(str);
return false;
return true;
});
}