Skip to content

Cannot subscribe to topics with ProtoBuf payloads #31

@NomadQA

Description

@NomadQA

I cannot subscribe to topics with ProtoBuf payloads as both the _on_message and _on_message_list callbacks within MQTTKeywords.py return the payload decoded to utf-8, with the .decode('utf-8').
With ProtoBuf messages, since they are simply raw bytes which are able to contain bytes that cannot be decoded to utf-8, the decode fails and an error message like the following is received:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x97 in position 63: invalid start byte

Is there any plans to allow ProtoBuf payloads?

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