REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    0302-11_ESP8266_REST_API_example

    IoT
    2
    2
    1.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      RexPeter
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • cechuratC
        cechurat
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

        There is also an outdated REXYGEN community forum.

        Powered by NodeBB.