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

Commit cc199f3

Browse files
committed
parseResponse()->json()
1 parent 77d6692 commit cc199f3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/FirebasePush_ESP8266/FirebasePush_ESP8266.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void setup() {
5555
return;
5656
}
5757
// Print written timestamp.
58-
String data = get.parseResponse()[push.name()];
58+
String data = get.json()[push.name()];
5959
Serial.println("Timestamp:" + data);
6060
}
6161

src/Firebase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ FirebaseCall::FirebaseCall(const String& host, const String& auth,
118118
}
119119
}
120120

121-
const JsonObject& FirebaseCall::parseResponse() {
121+
const JsonObject& FirebaseCall::json() {
122122
return buffer_.parseObject(response());
123123
}
124124

src/Firebase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class FirebaseCall {
8787
return response_;
8888
}
8989

90-
const JsonObject parseResponse();
90+
const JsonObject& json();
9191

9292
protected:
9393
HTTPClient* http_;

0 commit comments

Comments
 (0)