Skip to content

Commit 2658a0d

Browse files
committed
Merge pull request FirebaseExtended#37 from proppy/remove-val
Firebase: replace val by get
2 parents e6bde19 + a3fd730 commit 2658a0d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Firebase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Firebase& Firebase::auth(const String& auth) {
2727
return *this;
2828
}
2929

30-
String Firebase::val(const String& path) {
30+
String Firebase::get(const String& path) {
3131
return sendRequest("GET", path);
3232
}
3333

Firebase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Firebase {
5050
const FirebaseError& error() const {
5151
return _error;
5252
}
53-
String val(const String& path);
53+
String get(const String& path);
5454
String push(const String& path, const String& value);
5555
bool connected();
5656
Firebase& stream(const String& path);

examples/FirebasePush_ESP8266/FirebasePush_ESP8266.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void setup() {
4848
// print response.
4949
Serial.println(l);
5050
// print all entries.
51-
Serial.println(fbase.val("/logs"));
51+
Serial.println(fbase.get("/logs"));
5252
}
5353

5454
void loop() {

0 commit comments

Comments
 (0)