You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you sure you defined ARDUINOJSON_ENABLE_STD_STREAM before including ArduinoJson.h?
If you have multiple compilation units, make sure you use the same settings, the best is to set the defines in the Makefile.
Meanwhile, I'll add some code to auto-enable support std::stream base on the new __has_header directive introduced in C++17.
I'm using ArduinoJson on an esp32.
This works:
This works:
But as soon as I try to use
std::stringstream
I get a compile error:I've defined
ARDUINOJSON_ENABLE_STD_STREAM
:#define ARDUINOJSON_ENABLE_STD_STREAM 1
In the tests I see
std::stringstream
is used. What is going wrong here? I'm using the makeEspArduino makefile.The text was updated successfully, but these errors were encountered: