Skip to content

Cannot access the topic of a received message #4

@brummieb

Description

@brummieb

I've just started using robotframework-mqttlibrary, and I can set up a subscription as per the documentation, then successfully receive messages. If I subscribe to wildcards, e.g...

${message}= Subscribe topic=test/mqtt_test/+ qos=1 timeout=2

...I can successfully receive messages published to test/mqtt_test/apples, test/mqtt_test/oranges, test/mqtt_test/pears etc.

However, ${message} appears to only contain the content of the message payload, and I've been unable to work out if it's possible to determine the exact topic of the received message (e.g. was it test/mqtt_test/apples or test/mqtt_test/pears).

Is there any way to do this with robotframework-mqttlibrary?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions