pmalhaire / xk6-mqtt

k6 mqtt extension
Apache License 2.0
50 stars 38 forks source link

Payload Value Diff #40

Open RobAmey22 opened 1 month ago

RobAmey22 commented 1 month ago

I'm publishing data over a topic: {group_id}/{device_number}/info_location.

When I publish this data using a script that uses this extension, I get the value as '1' whereas I was expecting it to be some kinda of a string message that I was passing as the payload.

client.publish(topic, 'abc', 1, false, 2000);

Upon publishing the same payload over the same topic through MQTT Explorer, I get the see the correct message `abc' in values.

Ideally the value being passed in the payload should reflect as it is.

image

pmalhaire commented 4 weeks ago

Do you have a sample code to reproduce tour issue ?