Firebase Arduino
Firebase Arduino
Release 1.0
firebase-arduino
i
ii
firebase-arduino Documentation, Release 1.0
FirebaseArduino is a library to simplify connecting to the Firebase database from arduino clients.
It is a full abstraction of Firebases REST API exposed through C++ calls in a wiring friendly way. All Json parsing is
handled by the library and you may deal in pure C/Arduino types.
class FirebaseArduino
Main class for Arduino clients to interact with Firebase.
This implementation is designed to follow Arduino best practices and favor simplicity over all else. For more
complicated usecases and more control see the Firebase class in Firebase.h.
Public Functions
Contents 1
firebase-arduino Documentation, Release 1.0
2 Contents
firebase-arduino Documentation, Release 1.0
Parameters
path - The path inside of your db to the node you wish to update.
value - JSON data that you wish to write.
int getInt(const String &path)
Gets the integer value located at path.
You should check success() after calling.
Return The integer value located at that path. Will only be populated if success() is true.
Parameters
path - The path to the node you wish to retrieve.
float getFloat(const String &path)
Gets the float value located at path.
You should check success() after calling.
Return The float value located at that path. Will only be populated if success() is true.
Parameters
path - The path to the node you wish to retrieve.
String getString(const String &path)
Gets the string value located at path.
You should check success() after calling.
Return The string value located at that path. Will only be populated if success() is true.
Parameters
path - The path to the node you wish to retrieve.
bool getBool(const String &path)
Gets the boolean value located at path.
You should check success() after calling.
Return The boolean value located at that path. Will only be populated if success() is true.
Parameters
path - The path to the node you wish to retrieve.
FirebaseObject get(const String &path)
Gets the json object value located at path.
You should check success() after calling.
Return a FirebaseObject value located at that path. Will only be populated if success() is true.
Parameters
path - The path to the node you wish to retrieve.
void remove(const String &path)
Remove the node, and possibly entire tree, located at path.
You should check success() after calling.
Parameters
path - The path to the node you wish to remove, including all of its children.
Contents 3
firebase-arduino Documentation, Release 1.0
Public Functions
Parameters
data - JSON formatted string.
4 Contents
firebase-arduino Documentation, Release 1.0
Parameters
optional - path in the JSON object.
Contents 5
firebase-arduino Documentation, Release 1.0
6 Contents
Index
F
FirebaseArduino (C++ class), 1
FirebaseArduino::available (C++ function), 4
FirebaseArduino::begin (C++ function), 1
FirebaseArduino::error (C++ function), 4
FirebaseArduino::failed (C++ function), 4
FirebaseArduino::get (C++ function), 3
FirebaseArduino::getBool (C++ function), 3
FirebaseArduino::getFloat (C++ function), 3
FirebaseArduino::getInt (C++ function), 3
FirebaseArduino::getString (C++ function), 3
FirebaseArduino::push (C++ function), 2
FirebaseArduino::pushBool (C++ function), 1
FirebaseArduino::pushFloat (C++ function), 1
FirebaseArduino::pushInt (C++ function), 1
FirebaseArduino::pushString (C++ function), 1
FirebaseArduino::readEvent (C++ function), 4
FirebaseArduino::remove (C++ function), 3
FirebaseArduino::set (C++ function), 2
FirebaseArduino::setBool (C++ function), 2
FirebaseArduino::setFloat (C++ function), 2
FirebaseArduino::setInt (C++ function), 2
FirebaseArduino::setString (C++ function), 2
FirebaseArduino::stream (C++ function), 3
FirebaseArduino::success (C++ function), 4
FirebaseObject (C++ class), 4
FirebaseObject::error (C++ function), 5
FirebaseObject::failed (C++ function), 5
FirebaseObject::FirebaseObject (C++ function), 4
FirebaseObject::getBool (C++ function), 4
FirebaseObject::getFloat (C++ function), 5
FirebaseObject::getInt (C++ function), 4
FirebaseObject::getJsonVariant (C++ function), 5
FirebaseObject::getString (C++ function), 5
FirebaseObject::success (C++ function), 5