Open thetuxcat opened 5 years ago
Arduino: 1.8.7 (Windows 10), Board: "TTGO LoRa32-OLED V1, 80MHz, 921600, None"
C:\Users\thetu\Documents\Arduino\sketch_dec04b\sketch_dec04b.ino: In function 'void loop()':
sketch_dec04b:177:1: error: 'DynamicJsonBuffer' was not declared in this scope
DynamicJsonBuffer jsonBuffer(bufferSize);
^
sketch_dec04b:179:20: error: 'jsonBuffer' was not declared in this scope
JsonObject& root = jsonBuffer.parseObject(buffer);
^
sketch_dec04b:181:11: error: 'class ArduinoJson660_0_0::JsonObject' has no member named 'success'
if (!root.success()) {
^
Multiple libraries were found for "SPI.h" Used: C:\Users\thetu\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\SPI Not used: C:\Users\thetu\Documents\Arduino\libraries\SPI Multiple libraries were found for "WiFi.h" Used: C:\Users\thetu\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\WiFi Not used: C:\Program Files (x86)\Arduino\libraries\WiFi Multiple libraries were found for "WiFiClientSecure.h" Used: C:\Users\thetu\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.0\libraries\WiFiClientSecure Not used: C:\Users\thetu\Documents\Arduino\libraries\ESP8266WiFi exit status 1 'DynamicJsonBuffer' was not declared in this scope
This error is caused by using a version of the ArduinoJson library that is not compatible with this library. The solution is to roll back to the newest compatible version of ArduinoJson:
After that, the code should compile.
More information, as well as a guide to updating the library to the ArduinoJson 6.x.x API:
Thank you, got past that, but will not compile to any boards listed. It see the boards and has port, but no compile.
Sent from Mail for Windows 10
From: per1234 Sent: Tuesday, December 4, 2018 5:24 PM To: LilyGO/TTGO-T4-DEMO Cc: thetuxcat; Author Subject: Re: [LilyGO/TTGO-T4-DEMO] DynamicJsonBuffer jsonBuffer(bufferSize);(#5)
This error is caused by using a version of the ArduinoJson library that is not compatible with this library. The solution is to roll back to the newest compatible version of ArduinoJson:
It dosent work, DynamicJsonBuffer jsonBuffer(bufferSize);