Skip to content

Commit 36e2182

Browse files
committed
Merge branch 'add-docs' of https://github.com/ed7coyne/firebase-arduino into add-docs
2 parents 5d8511c + 8138581 commit 36e2182

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

src/FirebaseArduino.h

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,34 @@
2121
#include "FirebaseObject.h"
2222

2323
/**
24-
* Gateway class for Arduino clients to interact with the Firebase backend.
24+
* Main class for Arduino clients to interact with Firebase.
2525
* This implementation is designed to follow Arduino best practices and favor
26-
* simplicity over all else. For more complicated usecases and more control
27-
* see the Firebase class in Firebase.h.
26+
* simplicity over all else.
27+
* For more complicated usecases and more control see the Firebase class in
28+
* Firebase.h.
2829
*/
2930
class FirebaseArduino {
3031
public:
3132
/**
32-
* Must be called first. This sets the class up for use.
33-
* \param host Your firebase db server domain name, usually X.firebaseIO.com.
34-
* \param auth Optional authentication for the db, a Secret or Token.
33+
* Must be called first. This initialize the client with the given
34+
* firebase host and credentials.
35+
* \param host Your firebase db host, usually X.firebaseio.com.
36+
* \param auth Optional credentials for the db, a secret or token.
3537
*/
3638
void begin(const char* host, const char* auth = "");
3739

3840
/**
39-
* Adds the data in value to the list located at path. Equivilent to the
40-
* REST API's POST.
41+
* Writes data to a new child location under the parent at path.
42+
* Equivalent to the REST API's POST.
4143
* You should check success() after calling.
42-
* \param path The path inside of your db to the list you wish to update.
43-
* \param value Data that you wish to add to the list.
44-
* \return The child name where the data was written.
44+
* \param path The path inside of your db to the parent object.
45+
* \param value Data that you wish to add under the parent.
46+
* \return The unique child key where the data was written.
4547
*/
4648
String push(const String& path, const JsonVariant& value);
4749

4850
/**
49-
* Writes the data in value to the node located at path Equivilent to the
51+
* Writes the data in value to the node located at path equivalent to the
5052
* REST API's PUT.
5153
* You should check success() after calling.
5254
* \param path The path inside of your db to the node you wish to update.
@@ -58,16 +60,16 @@ class FirebaseArduino {
5860
/**
5961
* Gets the value located at path.
6062
* You should check success() after calling.
61-
* \param path The path inside of your db of the node you wish to retrieve.
63+
* \param path The path to the node you wish to retrieve.
6264
* \return The data located at that path. This may either be a single element
6365
* or it may be a json structure. Will only be populated if success() is true.
6466
*/
6567
FirebaseObject get(const char* path);
6668

6769
/**
68-
* Remove the variable, and possibly entire tree, located at path.
70+
* Remove the node, and possibly entire tree, located at path.
6971
* You should check success() after calling.
70-
* \param path The path inside of your db to the node you wish to remove,
72+
* \param path The path to the node you wish to remove,
7173
* including all of its children.
7274
*/
7375
void remove(const char* path);

0 commit comments

Comments
 (0)