mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	https://github.com/msgpack/website/blob/master/README.md#how-to-list-up-your-project-on-msgpackorg
		
			
				
	
	
	
		
			2.5 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			2.5 KiB
		
	
	
	
	
	
	
	
MessagePack for Arduino
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:
- install the library from the Arduino Library Manager,
- install the library from the Particle Web IDE,
- download the single header from the release page.
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.