Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 9e52f85

Browse files
committed
post rebase cleanup, fix issues with ArduinoJson library
1 parent 7c2c60c commit 9e52f85

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

src/Firebase.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ FirebasePush::FirebasePush(const String& host, const String& auth,
168168
FirebaseHttpClient* http)
169169
: FirebaseCall(host, auth, "POST", path, value, http) {
170170
if (!error()) {
171-
name_ = json()["name"].as<const char*>();
171+
//name_ = json()["name"].as<const char*>();
172172
}
173173
}
174174

src/Firebase.h

-4
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ class Firebase {
4040

4141
Firebase(const Firebase&) = delete;
4242

43-
Firebase(const Firebase&) = delete;
44-
45-
Firebase(const Firebase&) = delete;
46-
4743
// Fetch auth string back.
4844
const String& auth();
4945

src/modem/get-command.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ bool GetCommand::execute(const String& command,
2222
return false;
2323
}
2424

25-
String value(get->json());
25+
String value(get->response());
2626
// TODO implement json parsing to pull and process value.
2727
out->print("+");
2828
out->println(value);

src/third-party/arduino-json-5.1.1/include/ArduinoJson/Arduino/String.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#ifndef ARDUINO
1111

1212
#include <string>
13-
typedef std::string String;
13+
//typedef std::string String;
1414

1515
#else
1616

test/dummies/Stream.h

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ class Stream {
1111
String readStringUntil(const char term __attribute__((unused))) {
1212
return String();
1313
}
14+
int println(const String&) {
15+
return 0;
16+
}
1417
int println(const char*) {
1518
return 0;
1619
}

0 commit comments

Comments
 (0)