witnessmenow / arduino-youtube-api

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

Compiling errors #8

Closed fiatbravodriver closed 5 years ago

fiatbravodriver commented 5 years ago

Hi I am having compiling errors trying to test out the latest example sketch:

ChannelStatisticsWithWifiManagerAndDoubleReset

I am very sorry in advance if I have done something stupid.

Kind Regards

J

C:\Users\James\AppData\Local\Temp\Rar$DIa0.661\ChannelStatisticsWithWifiManagerAndDoubleReset\ChannelStatisticsWithWifiManagerAndDoubleReset.ino: In function 'bool loadConfig()':

ChannelStatisticsWithWifiManagerAndDoubleReset:153: error: 'StaticJsonBuffer' was not declared in this scope

StaticJsonBuffer<200> jsonBuffer;

^

ChannelStatisticsWithWifiManagerAndDoubleReset:153: error: 'jsonBuffer' was not declared in this scope

StaticJsonBuffer<200> jsonBuffer;

                     ^

ChannelStatisticsWithWifiManagerAndDoubleReset:156: error: 'class ArduinoJson::JsonObject' has no member named 'success'

if (!json.success()) {

         ^

C:\Users\James\AppData\Local\Temp\Rar$DIa0.661\ChannelStatisticsWithWifiManagerAndDoubleReset\ChannelStatisticsWithWifiManagerAndDoubleReset.ino: In function 'bool saveConfig()':

ChannelStatisticsWithWifiManagerAndDoubleReset:167: error: 'StaticJsonBuffer' was not declared in this scope

StaticJsonBuffer<200> jsonBuffer;

^

ChannelStatisticsWithWifiManagerAndDoubleReset:167: error: 'jsonBuffer' was not declared in this scope

StaticJsonBuffer<200> jsonBuffer;

                     ^

ChannelStatisticsWithWifiManagerAndDoubleReset:178: error: 'class ArduinoJson::JsonObject' has no member named 'printTo'

json.printTo(configFile);

    ^

Using library arduino-youtube-api-master at version 1.1.0 in folder: C:\Users\James\Documents\Arduino\libraries\arduino-youtube-api-master Using library ArduinoJson at version 6.4.0-beta in folder: C:\Users\James\Documents\Arduino\libraries\ArduinoJson Using library ESP8266WiFi at version 1.0 in folder: C:\Users\James\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\ESP8266WiFi Using library DoubleResetDetector at version 1.0.2 in folder: C:\Users\James\Documents\Arduino\libraries\DoubleResetDetector Using library WiFiManager at version 0.14 in folder: C:\Users\James\Documents\Arduino\libraries\WiFiManager Using library ESP8266WebServer at version 1.0 in folder: C:\Users\James\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\ESP8266WebServer Using library DNSServer at version 1.1.0 in folder: C:\Users\James\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\DNSServer exit status 1 'StaticJsonBuffer' was not declared in this scope

fiatbravodriver commented 5 years ago

It was the version of the library that caused this problem for me.