Comments (4)
Hi,
There is a trick in the Task
that exposes a delay function that overrides the "normal" delay as a protected method. To use it outside the Task
you would need to pass it through to the function, or expose a method on your task that will call the protected delay and pass your Task
. You could also make the function a task method.
from esp8266scheduler.
Thank you very much! I exposed a function on my Task and it worked :)
Do you have any idea how to also achieve this with external libraries that make use of the delay function?
from esp8266scheduler.
As far as I can tell, it would not be possible.
from esp8266scheduler.
No problem, thank you anyway for the library and your help!
from esp8266scheduler.
Related Issues (20)
- Doesnt work if use function => while (Client.connected()) HOT 8
- No removing/stoping task HOT 3
- Problems with: while(WiFiMulti.run() != WL_CONNECTED){} HOT 11
- Overloading loop() HOT 8
- Arduino compatibility HOT 2
- Any online request causing delay on the main loop HOT 5
- Example using delay or yield in class instantiated in task HOT 7
- Removal of main Task to save ram HOT 1
- Allow for an extra "free" task HOT 8
- How can I stop the Task? HOT 1
- Add Scheduler.Stop(); HOT 1
- Documentation has a "typo" HOT 1
- Scheduler v0.1.0 incompatible with ESP8266-core-3.0.0 HOT 7
- Can't work with UniversalTelegramBot lib HOT 1
- Calling yield and delay outside of tasks HOT 1
- Using ESP8266Scheduler to make HTTPS requests without blocking loop(). HOT 2
- cont_yield with ESP8266 Release 3.1.0 HOT 4
- cont_suspend was not declared in this scope HOT 3
- Delay in subroutines HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp8266scheduler.