Skip to content

Erreur pendant la compilation #103

@guilhem034

Description

@guilhem034

Bonjour,
Pendant la compilation j'ai les erreurs suivantes qui apparaissent:

Arduino : 1.8.12 (Windows 10), Carte : "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"

C:\Program Files (x86)\Arduino\libraries\Redgick_Laboite-master\Redgick_Laboite.cpp:110:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6

StaticJsonBuffer<1024> jsonBuffer;

       ^

C:\Program Files (x86)\Arduino\libraries\Redgick_Laboite-master\Redgick_Laboite.cpp:254:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6

StaticJsonBuffer<1024> jsonBuffer;

       ^

C:\Program Files (x86)\Arduino\libraries\Redgick_Laboite-master\Redgick_Laboite.cpp: In member function 'void Lenuage::updateBuffer()':

C:\Program Files (x86)\Arduino\libraries\Redgick_Laboite-master\Redgick_Laboite.cpp:110:19: error: expected primary-expression before '<' token

StaticJsonBuffer<1024> jsonBuffer;

               ^

C:\Program Files (x86)\Arduino\libraries\Redgick_Laboite-master\Redgick_Laboite.cpp:110:26: error: 'jsonBuffer' was not declared in this scope

StaticJsonBuffer<1024> jsonBuffer;

                      ^

C:\Program Files (x86)\Arduino\libraries\Redgick_Laboite-master\Redgick_Laboite.cpp:113:13: error: 'ArduinoJson::JsonObject' has no member named 'success'

if (!root.success()) {

         ^

C:\Program Files (x86)\Arduino\libraries\Redgick_Laboite-master\Redgick_Laboite.cpp:129:33: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson6152_0000010::ArrayRef&}' from an rvalue of type 'ArduinoJson6152_0000010::enable_if<true, ArduinoJson6152_0000010::MemberProxy<ArduinoJson6152_0000010::ObjectRef, const char*> >::type {aka ArduinoJson6152_0000010::MemberProxy<ArduinoJson6152_0000010::ObjectRef, const char*>}'

JsonArray& data = root["tiles"];

                             ^

C:\Program Files (x86)\Arduino\libraries\Redgick_Laboite-master\Redgick_Laboite.cpp:131:29: error: invalid initialization of reference of type 'ArduinoJson::JsonObject& {aka ArduinoJson6152_0000010::ObjectRef&}' from expression of type 'ArduinoJson6152_0000010::VariantRef'

 JsonObject& tile_data = tile;

                         ^

C:\Program Files (x86)\Arduino\libraries\Redgick_Laboite-master\Redgick_Laboite.cpp: In member function 'void Lenuage::updateTile(int)':

C:\Program Files (x86)\Arduino\libraries\Redgick_Laboite-master\Redgick_Laboite.cpp:254:19: error: expected primary-expression before '<' token

StaticJsonBuffer<1024> jsonBuffer;

               ^

C:\Program Files (x86)\Arduino\libraries\Redgick_Laboite-master\Redgick_Laboite.cpp:254:26: error: 'jsonBuffer' was not declared in this scope

StaticJsonBuffer<1024> jsonBuffer;

                      ^

C:\Program Files (x86)\Arduino\libraries\Redgick_Laboite-master\Redgick_Laboite.cpp:257:13: error: 'ArduinoJson::JsonObject' has no member named 'success'

if (!root.success()) {

         ^

C:\Program Files (x86)\Arduino\libraries\Redgick_Laboite-master\Redgick_Laboite.cpp:273:33: error: invalid initialization of non-const reference of type 'ArduinoJson::JsonArray& {aka ArduinoJson6152_0000010::ArrayRef&}' from an rvalue of type 'ArduinoJson6152_0000010::enable_if<true, ArduinoJson6152_0000010::MemberProxy<ArduinoJson6152_0000010::ObjectRef, const char*> >::type {aka ArduinoJson6152_0000010::MemberProxy<ArduinoJson6152_0000010::ObjectRef, const char*>}'

JsonArray& data = root["items"];

                             ^

C:\Program Files (x86)\Arduino\libraries\Redgick_Laboite-master\Redgick_Laboite.cpp:275:29: error: invalid initialization of reference of type 'ArduinoJson::JsonObject& {aka ArduinoJson6152_0000010::ObjectRef&}' from expression of type 'ArduinoJson6152_0000010::VariantRef'

 JsonObject& item_data = item;

                         ^

C:\Program Files (x86)\Arduino\libraries\Redgick_Laboite-master\Redgick_Laboite.cpp:314:38: error: 'ArduinoJson6152_0000010::enable_if<true, ArduinoJson6152_0000010::MemberProxy<ArduinoJson6152_0000010::ObjectRef, const char*> >::type' has no member named 'asString'

   content = item_data["content"].asString();

                                  ^

C:\Program Files (x86)\Arduino\libraries\Redgick_Laboite-master\Redgick_Laboite.cpp:318:39: error: 'ArduinoJson6152_0000010::enable_if<true, ArduinoJson6152_0000010::MemberProxy<ArduinoJson6152_0000010::ObjectRef, const char*> >::type' has no member named 'asString'

   String type = item_data["type"].asString();

                                   ^

Plusieurs bibliothèque trouvées pour "ArduinoJson.h"
Utilisé : C:\Users\Guilhem\Documents\Arduino\libraries\ArduinoJson
Non utilisé : C:\Program Files (x86)\Arduino\libraries\ArduinoJson-5.x
exit status 1
Erreur de compilation pour la carte NodeMCU 1.0 (ESP-12E Module)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions