Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoRaWan_CayenneLPP Example doesn't build #216

Closed
vschlegel opened this issue Jan 8, 2022 · 1 comment · Fixed by #220
Closed

LoRaWan_CayenneLPP Example doesn't build #216

vschlegel opened this issue Jan 8, 2022 · 1 comment · Fixed by #220

Comments

@vschlegel
Copy link

When trying to compile the LoRaWan_CayenneLPP Example, Arduino IDE will report the following error:

In file included from /home/val/Arduino/libraries/ArduinoJson/src/ArduinoJson.hpp:7,
                 from /home/val/Arduino/libraries/ArduinoJson/src/ArduinoJson.h:9,
                 from /home/val/Arduino/libraries/CayenneLPP/src/CayenneLPP.h:11,
                 from /home/val/.arduino15/packages/CubeCell/hardware/CubeCell/1.3.0/libraries/LoRa/examples/LoRaWAN/LoRaWan_CayenneLPP/LoRaWan_CayenneLPP.ino:3:
/home/val/Arduino/libraries/ArduinoJson/src/ArduinoJson/Configuration.hpp:235:2: error: #error nullptr is defined as a macro. Remove the faulty #define or #undef nullptr
 #error nullptr is defined as a macro. Remove the faulty #define or #undef nullptr
  ^~~~~
exit status 1
Error compiling for board CubeCell-Board(HTCC-AB01).

This is probably connected to bblanchon/ArduinoJson#1355 but i have no idea how to fix this.

Versions i use:

Arduino IDE 1.8.19
CubeCell Development Framework 1.3.0
CayenneLPP 1.3.0
ArduinoJson 6.18.5
@SebDominguez
Copy link
Contributor

SebDominguez commented Jan 21, 2022

This error was introduced by ArduinoJson since v6.17.0
This update added a build failure when nullptr is defined as a macro.

Until HelTecAutomation patch the Arduino framework themself (could take a while) you can try removing the macro yourself.

You'll find if on the following file

and remove the line 58 #define nullptr NULL

You can also remove the null pointer definition check inside ArduinoJson.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants