-
Notifications
You must be signed in to change notification settings - Fork 34
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
Any online request causing delay on the main loop #16
Comments
What is the issue exactly? |
The only ways around this I can think of are:
|
I found a way to make this work:
class HTTPSClientScheduled : public HTTPSClient {
int available() override {
SchedulerClass::yield();
return HTTPSClient::available();
}
};
This works because @nrwiersma would you consider a PR that exposes yield and delay in that way inside the Scheduler class? |
I think it can be done |
@dbuezas @nrwiersma So what's the verdict? Does the workaround in #16 (comment) still work? There's a new LeanTask now right? I have the same issue - I want to do MIDI playback in one task, delay() until the next note and then go back to polling. If it does work then this issue should probably be closed |
I haven't used this in a long time, but the workaround should still work and be necessary |
Thanks! Just to clarify, when you say HttpsClient do you mean WiFiClientSecure, HTTPClient, or something else entirely? I couldn't find a lib called HttpsClient. |
Most likely WiFiClientSecure. |
I have one task with simple request to REST api and if i'll start in main esp loop is waiting for response...
The text was updated successfully, but these errors were encountered: