ArduinoJSON: "null"-Wert einfügen

English Deutsch

Einfach nullptr verwenden:

arduinojson_null_example.cpp
json["myvalue"] = nullptr;

Wenn nullptr nicht verfügbar ist, das Äquivalent (char*)0 verwenden:

arduinojson_null_fallback.cpp
json["myvalue"] = (char*)0;

Check out similar posts by category: Arduino, Embedded