Skip to content

Commit e62c217

Browse files
committed
Firebase.readEvent() returns "type" instead "put" while getting data from Firebase
1 parent e197696 commit e62c217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FirebaseArduino.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ FirebaseObject FirebaseArduino::readEvent() {
179179
String event = client->readStringUntil('\n').substring(6);
180180
client->readStringUntil('\n'); // consume separator
181181
FirebaseObject obj = FirebaseObject(event.c_str());
182-
obj.getJsonVariant().asObject()["type"] = type.c_str();
182+
obj.getJsonVariant().asObject()["type"] = type;
183183
return obj;
184184
}
185185

0 commit comments

Comments
 (0)