O'Reilly logo

Mastering Internet of Things by Peter Waher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Encoding content

Encoding content in HTTP is relatively easy, but decoding is complicated. Since it is easy to encode and provide a content type string, the decoder needs to be very flexible to support all the content types that might be used, including all the individual variants, character encodings, and so on. You can even create proprietary and vendor-specific encodings very easily.

CoAP has reversed these relationships. In CoAP, it is more complicated to encode the content you want to transfer, but this makes it much easier for the receiving end, who need to decode the information. Only of few of all available Internet Content Types, or Media Types, are possible to encode in CoAP. Fewer options means it's easier to decode, but more difficult ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required