forked from bblanchon/ArduinoJson
Renamed function RawJson() to serialized()
This commit is contained in:
1 parent
765752261c
commit
87fa87d87b
59 files changed
+842
-550
No files matched your search
@@ -37,8 +37,9 @@ void setup() {
|
||||
// JsonBuffer.
|
||||
obj["sensor"] = F("gps");
|
||||
|
||||
// It works with RawJson too:
|
||||
obj["sensor"] = RawJson(F("\"gps\""));
|
||||
// It works with serialized() too:
|
||||
obj["sensor"] = serialized(F("\"gps\""));
|
||||
obj["sensor"] = serialized(F("\xA3gps"), 3);
|
||||
|
||||
// You can compare the content of a JsonVariant to a Flash String
|
||||
if (obj["sensor"] == F("gps")) {
|
||||
|
||||
Reference in new issue
Block a user