mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
working example of callback with date passing inside and outside for using
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user