Skip to content

Get binary response from server in Client #21

Description

@MartinEnders

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions