Skip to content

Commit 02cfb98

Browse files
committed
Fixing modem tests
1 parent 1f8746d commit 02cfb98

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

contrib/src/modem/db/stream-command.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ bool StreamCommand::execute(const String& command,
3232
out->print(FirebaseStream::EventToName(event).c_str());
3333
out->print(" ");
3434
const auto& object = buffer.parseObject(json.c_str());
35-
String data = object["data"];
35+
String data = object["data"].asString();
3636
out->println(object["path"].asString());
3737
out->println(data.length());
3838
out->println(data);

contrib/test/modem/WString.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#include <string>
2+
3+
typedef std::string String;

src/Firebase.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#ifndef firebase_h
2121
#define firebase_h
2222

23+
#include "WString.h"
2324
#include <Arduino.h>
2425
#include <memory>
2526
#include <ArduinoJson.h>

0 commit comments

Comments
 (0)