Hello Giacomo Tanganelli,
To receive binary data from the CoAP Server it can only be sent with content_type application/octet-stream other content types like application/cbor can be used within the server but are not recognized as binary from the client.
I think the following line has to be modified:
https://github.com/Tanganelli/CoAPthon3/blob/master/coapthon/serializer.py#L117
Currently the payload of the response from the server is only treated as as binary when the content type is set to application/octet-stream.
Maybe you could extend this to application/cbor
Best Regards
Martin
Hello Giacomo Tanganelli,
To receive binary data from the CoAP Server it can only be sent with content_type
application/octet-streamother content types likeapplication/cborcan be used within the server but are not recognized as binary from the client.I think the following line has to be modified:
https://github.com/Tanganelli/CoAPthon3/blob/master/coapthon/serializer.py#L117
Currently the payload of the response from the server is only treated as as binary when the content type is set to
application/octet-stream.Maybe you could extend this to
application/cborBest Regards
Martin