Message Pack

Message Pack is a smart way to serialize the data in a faster and smaller way than JSON. There is plenty of libraries in the common languages to encode/decode msgpack efficiently.

The format allows sending arbitrary objects (like in JSON).

A smaller body means less data transmited and an energy saving which makes the format very interesting for battery powered devices.

Using msgpack with thethings.iO

You can use msgpack with http/s by adding the header Content-type

Example

Limitations

At the moment we don't offer full support to message pack.

  • The MQTT, CoAP and Websocket can't be encoded in msgpack (we are working on that).
  • Due to our backend it is not possible to encode/decode binary 0xC4-0xC6.

Said that if your project needs these features please contact us.