How can I get the specific value from the fields in firestore database no callback? #142
itsjohndavea
started this conversation in
General
Replies: 1 comment 1 reply
-
What you requested in Firestore does not support by REST API. You should use Realtime database instead. |
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
-
void listenerFirebaseLockStatus(){
String devicePath = "device/testDocID";
Docs.get(aClient, Firestore::Parent(FIREBASE_PROJECT_ID), devicePath, GetDocumentOptions(DocumentMask("isLocked")), aResult_no_callback);
//i dont know to call here, how can I get the specific value in isLocked fields?
if(isLocked == true){
digitalWrite(RELAY_PIN, HIGH);
}else{
digitalWrite(RELAY_PIN, LOW);
}
}
here I want to have listener from firestore, to lock and unlocked. and I don't see any example of direct read the value of the fields sorry I'm pure beginner. Thank!
Beta Was this translation helpful? Give feedback.
All reactions