go-coap icon indicating copy to clipboard operation
go-coap copied to clipboard

Changed MediaType from byte to int to handle extended vendor type

Open bocajim opened this issue 8 years ago • 1 comments

IETF is specifying MediaType codes beyond 255: https://www.iana.org/assignments/core-parameters/core-parameters.xhtml

As such, the type of the field needs to change to something larger and able to handle the other protocols (such as the OMA-LWM2M vendor codes).

bocajim avatar Feb 23 '17 02:02 bocajim

Thanks you @bocajim for the contribution; looks code.

Can you please add a short unit tests that encodes and decodes a message with a Content-Type bigger than 255? (just pick one of those OMA-LWM2M types)

dubek avatar Feb 23 '17 07:02 dubek