Skip to content

Commit ec13b31

Browse files
committed
Merge pull request FirebaseExtended#67 from googlesamples/ed7coyne-patch-1
Fix parsing of returned json object.
2 parents 6d93409 + 10b2609 commit ec13b31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/FirebaseStream_ESP8266/FirebaseStream_ESP8266.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void loop() {
6565
Serial.println(event);
6666
JsonObject& json = buf.parseObject((char*)event.c_str());
6767
String path = json["path"];
68-
float data = json["data"];
68+
float data = json["data"]["last"];
6969

7070
// TODO(proppy): parse JSON object.
7171
display.clearDisplay();

0 commit comments

Comments
 (0)