Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please help me to fix this problem #358

Closed
jishnutv opened this issue Jun 21, 2018 · 15 comments
Closed

Please help me to fix this problem #358

jishnutv opened this issue Jun 21, 2018 · 15 comments
Labels

Comments

@jishnutv
Copy link

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

@Pinigit
Copy link

Pinigit commented Jun 22, 2018

Downgrade Arduinojson to the version 5.13.2. It will fix the issue. It seems some problems with the latest beta version.

@Pytoche
Copy link

Pytoche commented Jun 23, 2018

After downgrading the Arduino Json Library to 5.13.2 i'm getting the setting /number failed: error...

@jishnutv
Copy link
Author

Thank you Pinigit for your help. The error fixed after downgrading the ArduinoJson 6 to 5.13.2

@proppy
Copy link
Collaborator

proppy commented Jun 25, 2018

@Pytoche can you paste the complete error message on #357 (it looks similar).

Thanks in advance.

@proppy
Copy link
Collaborator

proppy commented Jun 25, 2018

Should be clarified by #356.

@proppy proppy closed this as completed Jun 25, 2018
@vicgig90
Copy link

after downgrade everything came back to normality

@harshil2712
Copy link

Thanx. After downgrading everything came to normal.

@msalik42
Copy link

Downgrade Arduinojson to the version 5.13.2. It will fix the issue. It seems some problems with the latest beta version.

Thanks. After downgrading the Arduinojson to version 5.13.2 work fine for me.

@phucle225
Copy link

update lib ArduinoJson , ArduinoJson is at least version 5.13.1

@arnabGudu
Copy link

Downgrade ArduinoJson to 5.13.1
Download FirebaseArduino library from https://github.com/FirebaseExtended/firebase-arduino.git

@kavinda28
Copy link

Thanks. everyone.you are save my life..

@ahmadasmandar
Copy link

Downgrade Arduinojson to the version 5.13.2. It will fix the issue. It seems some problems with the latest beta version.

thank you verymuch it worked for me

@crsluis
Copy link

crsluis commented Sep 26, 2019

funciono tambien versión 5.13.2.

@rayavarapuvikram1
Copy link

After downgrading the Arduino Json Library to 5.13.2 i'm getting the setting /number failed: error...

Check the Internet Connectivity of NodeMCU

@amolvppawar
Copy link

Use ArdunioJson 5.13.2
and use ArduinoFirebase
https://github.com/FirebaseExtended/firebase-arduino.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests