Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get binary response from server in Client #21

Open
MartinEnders opened this issue May 2, 2019 · 0 comments
Open

Get binary response from server in Client #21

MartinEnders opened this issue May 2, 2019 · 0 comments

Comments

@MartinEnders
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant