Files
thirdparty-ArduinoJson/msgpack.org.md

2.5 KiB

MessagePack for Arduino

arduino-library-badge Build Status Build Status Fuzzing Status Coverage Status GitHub stars

ArduinoJson supports MessagePack serialization and deserialization.

It supports all MessagePack features except bin format and timestamp.

How to install?

To install ArduinoJson, you can either:

See also: How to install ArduinoJson on arduinojson.org.

How to serialize to MsgPack?

StaticJsonDocument<200> doc;
doc["hello"] = "world";
serializeMsgPack(doc, Serial);

See also: serializeMsgPack() on arduinojson.org.

How to deserialize from MsgPack?

StaticJsonDocument<200> doc;
deserializeMsgPack(doc, input);
const char* hello = doc["hello"];

See also: deserializeMsgPack() and MsgPackParser.ino on arduinojson.org.