0302-11_ESP8266_REST_API_example



  • Hi,
    I wanted to trial the above mentioned REST_API_example with an ESP8266, but when loading the included Arduino IDE sketch, I get the following fault message that makes it more difficult for users like me that have limited knowledge about the ArduinoJson update process, but still like to trial some examples ... 🙂
    Would it be possible to update the example project so that it can be used with the actual Arduino program?

    Thanks in advance and best regards,
    Peter


    Arduino: 1.8.8 (Windows 7), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

    REXYGEN_REST_API_example:91:11: 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(bufferSize);
    
           ^
    

    REXYGEN_REST_API_example:126:11: 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(bufferSize);
    
           ^
    

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


  • administrators

    Hi Peter,

    thank you for reporting this and also sorry for difficulties. They made some major changes between version 5 and 6 of ArduinoJson library.

    I upgraded the Arduino sketch - see attached one. It can be compiled now however I don't have any ESP8266 around so didn't make any further tests.

    Let me know about your progress.

    Regards, Tomas

    0_1554469564091_REXYGEN_REST_API_example.ino