Hi all,
how can I read/access the response data of any mqtt subscribed topic?
Hi all,
how can I read/access the response data of any mqtt subscribed topic?
I’m not sure to understand your use case.
If I correctly understand, you have a virtual user that create a mqtt connection and subscribe to different topic and you don’t know on which subscribed topic the response will be?
Cheers!
I wanted to transform the response body stream received on a subscribed topic, because the transmitted data are google protobuf encoded
Two steps process:
mqtt("subscribe").subscribe("topic")
.await(10)
.check(
bodyBytes().transform(GeneratedClass.parseForm).is(someVariable)
)
Note: fixed a typo in previous post: equals
=> is
.
thx, it’s working!