@@ -35,7 +35,7 @@ class FirebaseArduino {
3535 * \param host Your firebase db host, usually X.firebaseio.com.
3636 * \param auth Optional credentials for the db, a secret or token.
3737*/
38- void begin (const char * host,const char * auth =" " );
38+ void begin (const String& host,const String& auth =" " );
3939
4040/* *
4141 * Writes data to a new child location under the parent at path.
@@ -63,47 +63,47 @@ class FirebaseArduino {
6363 * \param path The path to the node you wish to retrieve.
6464 * \return The integer value located at that path. Will only be populated if success() is true.
6565*/
66- int getInt (const char * path);
66+ int getInt (const String& path);
6767
6868/* *
6969 * Gets the float value located at path.
7070 * You should check success() after calling.
7171 * \param path The path to the node you wish to retrieve.
7272 * \return The float value located at that path. Will only be populated if success() is true.
7373*/
74- float getFloat (const char * path);
74+ float getFloat (const String& path);
7575
7676/* *
7777 * Gets the string value located at path.
7878 * You should check success() after calling.
7979 * \param path The path to the node you wish to retrieve.
8080 * \return The string value located at that path. Will only be populated if success() is true.
8181*/
82- StringgetString (const char * path);
82+ StringgetString (const String& path);
8383
8484/* *
8585 * Gets the boolean value located at path.
8686 * You should check success() after calling.
8787 * \param path The path to the node you wish to retrieve.
8888 * \return The boolean value located at that path. Will only be populated if success() is true.
8989*/
90- bool getBool (const char * path);
90+ bool getBool (const String& path);
9191
9292/* *
9393 * Gets the json object value located at path.
9494 * You should check success() after calling.
9595 * \param path The path to the node you wish to retrieve.
9696 * \return a FirebaseObject value located at that path. Will only be populated if success() is true.
9797*/
98- FirebaseObjectget (const char * path);
98+ FirebaseObjectget (const String& path);
9999
100100/* *
101101 * Remove the node, and possibly entire tree, located at path.
102102 * You should check success() after calling.
103103 * \param path The path to the node you wish to remove,
104104 * including all of its children.
105105*/
106- void remove (const char * path);
106+ void remove (const String& path);
107107
108108/* *
109109 * Starts streaming any changes made to the node located at path, including
@@ -113,7 +113,7 @@ class FirebaseArduino {
113113 * monitoring available() and calling readEvent() to get new events.
114114 * \param path The path inside of your db to the node you wish to monitor.
115115*/
116- void stream (const char * path);
116+ void stream (const String& path);
117117
118118/* *
119119 * Checks if there are new events available. This is only meaningful once