Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Fix streaming parsing #69

Merged
merged 1 commit into from
Mar 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/FirebaseStream_ESP8266/FirebaseStream_ESP8266.ino
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void setup() {
Serial.println();
Serial.print("connected: ");
Serial.println(WiFi.localIP());
stream = fbase.stream("/bitcoin");
stream = fbase.stream("/bitcoin/last");
}


Expand All @@ -65,7 +65,7 @@ void loop() {
Serial.println(event);
JsonObject& json = buf.parseObject((char*)event.c_str());
String path = json["path"];
float data = json["data"]["last"];
float data = json["data"];

// TODO(proppy): parse JSON object.
display.clearDisplay();
Expand Down