Skip to content

Firestore & Firebase #266

Answered by mobizt
WookiMan asked this question in Q&A
Discussion options

You must be logged in to vote
  1. MultiPath Stream is a Stream that using stream.get to check that the predefined child node key exists in the MultiPathStream data or not.
    void streamCallback(MultiPathStreamData stream)
    {
    size_t numChild = sizeof(childPath) / sizeof(childPath[0]);
    for (size_t i = 0; i < numChild; i++)
    {
    if (stream.get(childPath[i]))
    {
    Serial.printf("path: %s, event: %s, type: %s, value: %s%s", stream.dataPath.c_str(), stream.eventType.c_str(), stream.type.c_str(), stream.value.c_str(), i < numChild - 1 ? "\n" : "");
    }
    }

The value from MultiPath…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by WookiMan
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants