Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit02cfb98

Browse files
committed
Fixing modem tests
1 parent1f8746d commit02cfb98

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
constauto& 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
#definefirebase_h
2222

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp