We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4713f7 commit 2b47534Copy full SHA for 2b47534
src/FirebaseArduino.cpp
@@ -179,9 +179,9 @@ FirebaseObject FirebaseArduino::readEvent() {
179
String event = client->readStringUntil('\n').substring(6);
180
client->readStringUntil('\n'); // consume separator
181
FirebaseObject obj = FirebaseObject(event.c_str());
182
- if (type.length() > 0) {
183
- obj.getJsonVariant().as<JsonObject&>().set("type", type);
184
- }
+ JsonObject& jsonObject = obj.getJsonVariant().as<JsonObject&>();
+ jsonObject.set("type", "");
+ jsonObject.set("type", type);
185
return obj;
186
}
187
0 commit comments