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

Please help me to fix this problem #358

Closed
@jishnutv

Description

@jishnutv

In file included from lib\firebase-arduino-master\src\Firebase.h:30:0,
from lib\firebase-arduino-master\src\Firebase.cpp:16:
lib\firebase-arduino-master\src\FirebaseObject.h:109:21: error: 'StaticJsonBuffer' was not declared in this scope
std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_;
^
lib\firebase-arduino-master\src\FirebaseObject.h:109:21: note: suggested alternative:
In file included from lib\ArduinoJson\src/ArduinoJson/StaticJsonDocument.hpp:8:0,
from lib\ArduinoJson\src/ArduinoJson.hpp:15,
from lib\ArduinoJson\src/ArduinoJson.h:9,
from lib\firebase-arduino-master\src\Firebase.h:26,
from lib\firebase-arduino-master\src\Firebase.cpp:16:
lib\ArduinoJson\src/ArduinoJson/Memory/StaticJsonBuffer.hpp:110:7: note: 'ArduinoJson::Internals::StaticJsonBuffer'
class StaticJsonBuffer : public Internals::StaticJsonBufferBase {
^
In file included from lib\ArduinoJson\src/ArduinoJson/DynamicJsonDocument.hpp:8:0,
from lib\ArduinoJson\src/ArduinoJson.hpp:9,
from lib\ArduinoJson\src/ArduinoJson.h:9,
from lib\firebase-arduino-master\src\Firebase.h:26,
from lib\firebase-arduino-master\src\Firebase.cpp:16:
lib\ArduinoJson\src/ArduinoJson/JsonObject.hpp:18:77: error: template argument 1 is invalid
(sizeof(JsonObject) + (NUMBER_OF_ELEMENTS) * sizeof(JsonObject::node_type))
^
lib\firebase-arduino-master\src\FirebaseObject.h:28:34: note: in expansion of macro 'JSON_OBJECT_SIZE'
#define FIREBASE_JSONBUFFER_SIZE JSON_OBJECT_SIZE(32)
^
lib\firebase-arduino-master\src\FirebaseObject.h:109:38: note: in expansion of macro 'FIREBASE_JSONBUFFER_SIZE'
std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_;
^
In file included from lib\firebase-arduino-master\src\Firebase.h:30:0,
from lib\firebase-arduino-master\src\Firebase.cpp:16:
lib\firebase-arduino-master\src\FirebaseObject.h:109:62: error: expected unqualified-id before '>' token
std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_;
^
In file included from lib\firebase-arduino-master\src\Firebase.cpp:16:0:
lib\firebase-arduino-master\src\Firebase.h:86:19: error: 'StaticJsonBuffer' was not declared in this scope
std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_;
^
lib\firebase-arduino-master\src\Firebase.h:86:19: note: suggested alternative:
In file included from lib\ArduinoJson\src/ArduinoJson/StaticJsonDocument.hpp:8:0,
from lib\ArduinoJson\src/ArduinoJson.hpp:15,
from lib\ArduinoJson\src/ArduinoJson.h:9,
from lib\firebase-arduino-master\src\Firebase.h:26,
from lib\firebase-arduino-master\src\Firebase.cpp:16:
lib\ArduinoJson\src/ArduinoJson/Memory/StaticJsonBuffer.hpp:110:7: note: 'ArduinoJson::Internals::StaticJsonBuffer'
class StaticJsonBuffer : public Internals::StaticJsonBufferBase {
^
In file included from lib\ArduinoJson\src/ArduinoJson/DynamicJsonDocument.hpp:8:0,
from lib\ArduinoJson\src/ArduinoJson.hpp:9,
from lib\ArduinoJson\src/ArduinoJson.h:9,
from lib\firebase-arduino-master\src\Firebase.h:26,
from lib\firebase-arduino-master\src\Firebase.cpp:16:
lib\ArduinoJson\src/ArduinoJson/JsonObject.hpp:18:77: error: template argument 1 is invalid
(sizeof(JsonObject) + (NUMBER_OF_ELEMENTS) * sizeof(JsonObject::node_type))
^
lib\firebase-arduino-master\src\FirebaseObject.h:28:34: note: in expansion of macro 'JSON_OBJECT_SIZE'
#define FIREBASE_JSONBUFFER_SIZE JSON_OBJECT_SIZE(32)
^
lib\firebase-arduino-master\src\Firebase.h:86:36: note: in expansion of macro 'FIREBASE_JSONBUFFER_SIZE'
std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_;
^
In file included from lib\firebase-arduino-master\src\Firebase.cpp:16:0:
lib\firebase-arduino-master\src\Firebase.h:86:60: error: expected unqualified-id before '>' token
std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_;
^
lib\firebase-arduino-master\src\Firebase.cpp: In member function 'const ArduinoJson::JsonObject& FirebaseCall::json()':
lib\firebase-arduino-master\src\Firebase.cpp:60:7: error: 'buffer_' was not declared in this scope
if (buffer_.get() == NULL) {
^
lib\firebase-arduino-master\src\Firebase.cpp:61:23: error: expected type-specifier before 'StaticJsonBuffer'
buffer_.reset(new StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>());
^
lib\firebase-arduino-master\src\Firebase.cpp:63:10: error: 'buffer_' was not declared in this scope
return buffer_.get()->parseObject(response().c_str());
^
lib\firebase-arduino-master\src\Firebase.cpp: In member function 'int FirebaseRequest::sendRequest(const string&, const string&, char*, const string&, const string&)':
lib\firebase-arduino-master\src\Firebase.cpp:76:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
lib\firebase-arduino-master\src\Firebase.cpp: In member function 'void FirebaseStream::startStreaming(const string&, const string&, const string&)':
lib\firebase-arduino-master\src\Firebase.cpp:89:48: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
analyzeError("STREAM", status, path_with_auth);
^
lib\firebase-arduino-master\src\Firebase.cpp: In member function 'const ArduinoJson::JsonObject& FirebaseCall::json()':
lib\firebase-arduino-master\src\Firebase.cpp:64:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
*** [.pioenvs\nodemcuv2\lib6a5\firebase-arduino-master\Firebase.cpp.o] Error 1
In file included from lib\firebase-arduino-master\src/Firebase.h:30:0,
from lib\firebase-arduino-master\src/FirebaseArduino.h:22,
from src\main.cpp:2:
lib\firebase-arduino-master\src/FirebaseObject.h:109:21: error: 'StaticJsonBuffer' was not declared in this scope
std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_;
^
lib\firebase-arduino-master\src/FirebaseObject.h:109:21: note: suggested alternative:
In file included from lib\ArduinoJson\src/ArduinoJson/StaticJsonDocument.hpp:8:0,
from lib\ArduinoJson\src/ArduinoJson.hpp:15,
from lib\ArduinoJson\src/ArduinoJson.h:9,
from lib\firebase-arduino-master\src/Firebase.h:26,
ffrom lib\firebase-arduino-master\src/FirebaseArduino.h:22,
from src\main.cpp:2:
lib\ArduinoJson\src/ArduinoJson/Memory/StaticJsonBuffer.hpp:110:7: note: 'ArduinoJson::Internals::StaticJsonBuffer'
class StaticJsonBuffer : public Internals::StaticJsonBufferBase {
^
In file included from lib\ArduinoJson\src/ArduinoJson/DynamicJsonDocument.hpp:8:0,
from lib\ArduinoJson\src/ArduinoJson.hpp:9,
from lib\ArduinoJson\src/ArduinoJson.h:9,
from lib\firebase-arduino-master\src/Firebase.h:26,
from lib\firebase-arduino-master\src/FirebaseArduino.h:22,
from src\main.cpp:2:
lib\ArduinoJson\src/ArduinoJson/JsonObject.hpp:18:77: error: template argument 1 is invalid
(sizeof(JsonObject) + (NUMBER_OF_ELEMENTS) * sizeof(JsonObject::node_type))
^
lib\firebase-arduino-master\src/FirebaseObject.h:28:34: note: in expansion of macro 'JSON_OBJECT_SIZE'
#define FIREBASE_JSONBUFFER_SIZE JSON_OBJECT_SIZE(32)
^
lib\firebase-arduino-master\src/FirebaseObject.h:109:38: note: in expansion of macro 'FIREBASE_JSONBUFFER_SIZE'
std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_;
^
In file included from lib\firebase-arduino-master\src/Firebase.h:30:0,
from lib\firebase-arduino-master\src/FirebaseArduino.h:22,
from src\main.cpp:2:
lib\firebase-arduino-master\src/FirebaseObject.h:109:62: error: expected unqualified-id before '>' token
std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_;
^
In file included from lib\firebase-arduino-master\src/FirebaseArduino.h:22:0,
from src\main.cpp:2:
lib\firebase-arduino-master\src/Firebase.h:86:19: error: 'StaticJsonBuffer' was not declared in this scope
std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_;
^
lib\firebase-arduino-master\src/Firebase.h:86:19: note: suggested alternative:
In file included from lib\ArduinoJson\src/ArduinoJson/StaticJsonDocument.hpp:8:0,
from lib\ArduinoJson\src/ArduinoJson.hpp:15,
from lib\ArduinoJson\src/ArduinoJson.h:9,
from lib\firebase-arduino-master\src/Firebase.h:26,
from lib\firebase-arduino-master\src/FirebaseArduino.h:22,
from src\main.cpp:2:
lib\ArduinoJson\src/ArduinoJson/Memory/StaticJsonBuffer.hpp:110:7: note: 'ArduinoJson::Internals::StaticJsonBuffer'
class StaticJsonBuffer : public Internals::StaticJsonBufferBase {
^
In file included from lib\ArduinoJson\src/ArduinoJson/DynamicJsonDocument.hpp:8:0,
from lib\ArduinoJson\src/ArduinoJson.hpp:9,
from lib\ArduinoJson\src/ArduinoJson.h:9,
from lib\firebase-arduino-master\src/Firebase.h:26,
from lib\firebase-arduino-master\src/FirebaseArduino.h:22,
from src\main.cpp:2:
lib\ArduinoJson\src/ArduinoJson/JsonObject.hpp:18:77: error: template argument 1 is invalid
(sizeof(JsonObject) + (NUMBER_OF_ELEMENTS) * sizeof(JsonObject::node_type))
^
lib\firebase-arduino-master\src/FirebaseObject.h:28:34: note: in expansion of macro 'JSON_OBJECT_SIZE'
#define FIREBASE_JSONBUFFER_SIZE JSON_OBJECT_SIZE(32)
^
lib\firebase-arduino-master\src/Firebase.h:86:36: note: in expansion of macro 'FIREBASE_JSONBUFFER_SIZE'
std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_;
^
In file included from lib\firebase-arduino-master\src/FirebaseArduino.h:22:0,
from src\main.cpp:2:
lib\firebase-arduino-master\src/Firebase.h:86:60: error: expected unqualified-id before '>' token
std::shared_ptr<StaticJsonBuffer<FIREBASE_JSONBUFFER_SIZE>> buffer_;
^
*** [.pioenvs\nodemcuv2\src\main.cpp.o] Error 1
capture

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions