@@ -35,7 +35,7 @@ class FirebaseArduino {
35
35
* \param host Your firebase db host, usually X.firebaseio.com.
36
36
* \param auth Optional credentials for the db, a secret or token.
37
37
*/
38
- void begin (const char * host,const char * auth =" " );
38
+ void begin (const String& host,const String& auth =" " );
39
39
40
40
/* *
41
41
* Writes data to a new child location under the parent at path.
@@ -63,47 +63,47 @@ class FirebaseArduino {
63
63
* \param path The path to the node you wish to retrieve.
64
64
* \return The integer value located at that path. Will only be populated if success() is true.
65
65
*/
66
- int getInt (const char * path);
66
+ int getInt (const String& path);
67
67
68
68
/* *
69
69
* Gets the float value located at path.
70
70
* You should check success() after calling.
71
71
* \param path The path to the node you wish to retrieve.
72
72
* \return The float value located at that path. Will only be populated if success() is true.
73
73
*/
74
- float getFloat (const char * path);
74
+ float getFloat (const String& path);
75
75
76
76
/* *
77
77
* Gets the string value located at path.
78
78
* You should check success() after calling.
79
79
* \param path The path to the node you wish to retrieve.
80
80
* \return The string value located at that path. Will only be populated if success() is true.
81
81
*/
82
- StringgetString (const char * path);
82
+ StringgetString (const String& path);
83
83
84
84
/* *
85
85
* Gets the boolean value located at path.
86
86
* You should check success() after calling.
87
87
* \param path The path to the node you wish to retrieve.
88
88
* \return The boolean value located at that path. Will only be populated if success() is true.
89
89
*/
90
- bool getBool (const char * path);
90
+ bool getBool (const String& path);
91
91
92
92
/* *
93
93
* Gets the json object value located at path.
94
94
* You should check success() after calling.
95
95
* \param path The path to the node you wish to retrieve.
96
96
* \return a FirebaseObject value located at that path. Will only be populated if success() is true.
97
97
*/
98
- FirebaseObjectget (const char * path);
98
+ FirebaseObjectget (const String& path);
99
99
100
100
/* *
101
101
* Remove the node, and possibly entire tree, located at path.
102
102
* You should check success() after calling.
103
103
* \param path The path to the node you wish to remove,
104
104
* including all of its children.
105
105
*/
106
- void remove (const char * path);
106
+ void remove (const String& path);
107
107
108
108
/* *
109
109
* Starts streaming any changes made to the node located at path, including
@@ -113,7 +113,7 @@ class FirebaseArduino {
113
113
* monitoring available() and calling readEvent() to get new events.
114
114
* \param path The path inside of your db to the node you wish to monitor.
115
115
*/
116
- void stream (const char * path);
116
+ void stream (const String& path);
117
117
118
118
/* *
119
119
* Checks if there are new events available. This is only meaningful once