How do I use Async Get for two paths? #45
Unanswered
BaquiranCharlesJustin
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It's not possible by design. The async get in SSE mode called HTTP Stream is infinite operation task which the connection was keep open and waiting for the event data. You cannot run two infinite tasks in the same queue in async client as one infinite task is never finished, and another infinite task is never started. You have to run infinite task in another queue, i.e. another async client. https://github.com/mobizt/FirebaseClient?tab=readme-ov-file#async-queue |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm fairly new to developing ESP32 and using Firebase, I want to use the Database.get Async to two paths
This seems not to be working properly as it only gets the aResult for my light but not for my humidifier, I am a bit confused on how I can change this
Database.get(aClient, "/path/to/data", aResult);
void get(AsyncClientClass &aClient, const String &path, AsyncResult &aResult, bool sse = false)
To accomodate what I need which is this:
Database.get(aClient, "/Users/UID/DeviceStatus/Light", aResult, true);
Database.get(aClient, "/Users/UID/DeviceStatus/Humidifier", aResult, true);
Beta Was this translation helpful? Give feedback.
All reactions