witnessmenow / arduino-youtube-api

A wrapper around the youtube api for arduino
MIT License
141 stars 48 forks source link

Error compiling, tells me to upgrade to version 6 #15

Closed MrWilliam932 closed 4 years ago

MrWilliam932 commented 5 years ago

error: DynamicJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6

DynamicJsonBuffer jsonBuffer;

       ^

In member function 'bool YoutubeApi::getChannelStatistics(String)':

error: 'jsonBuffer' was not declared in this scope

DynamicJsonBuffer jsonBuffer;

                ^

error: 'ArduinoJson::JsonObject' has no member named 'success'

if(root.success()) {

      ^
witnessmenow commented 5 years ago

Downgrade your Arduino JSON to version 5, this library doesn't currently support v6

On Fri, 22 Mar 2019, 19:43 MrWilliam932, notifications@github.com wrote:

error: DynamicJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6

DynamicJsonBuffer jsonBuffer;

   ^

In member function 'bool YoutubeApi::getChannelStatistics(String)':

error: 'jsonBuffer' was not declared in this scope

DynamicJsonBuffer jsonBuffer;

            ^

error: 'ArduinoJson::JsonObject' has no member named 'success'

if(root.success()) {

  ^

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/witnessmenow/arduino-youtube-api/issues/15, or mute the thread https://github.com/notifications/unsubscribe-auth/ABfXwrxcmxwooko7Lk4NoLLN5S_aZzndks5vZTJbgaJpZM4cES7D .

witnessmenow commented 4 years ago

Fixed in #23