firebase-arduino: Including FirebaseArduino and ArduinoJson causes redefinition errors

Hi all,

I am working on a project that uses both FirebaseArduino and ArduinoJson libraries.

When I try to include ArduinoJson.h I get the the error that it has already been included in \path-to-libs\firebase-arduino\src\third-party\arduino-json-5.3\include\ArduinoJson\etc

Is there a nice way to use these two libraries together? At the moment I am including FirebaseArduino.h where I need to use ArduinoJson.h which is not a particularly nice solution.

Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15

Most upvoted comments

@kotl thank you. Looks like ArduinoJson library that I was using previously, was the problem. I used ArduinoJson library from https://github.com/bblanchon/ArduinoJson as you suggested. It worked. Thank You So Much!