Skip to content

MQTT topic prefix containing a slash doesn't parse #631

@frizzy

Description

@frizzy

I would like to use a MY_MQTT_SUBSCRIBE_TOPIC_PREFIX value containing slashes in the topic:

MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mysensors/1/in"

The client subscribes correctly, however protocolMQTTParse() currently seems to split the topic by "/" and compares the first element with MY_MQTT_SUBSCRIBE_TOPIC_PREFIX. It would probably be better to first trim the topic by MY_MQTT_SUBSCRIBE_TOPIC_PREFIX before splitting.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions