emqx / mqtt-jmeter

MQTT JMeter Plugin
https://www.emqx.com/en
Apache License 2.0
454 stars 196 forks source link

Question: Does it possible to set ContentType for Payload? #147

Open arepusb opened 1 year ago

arepusb commented 1 year ago

I use this plugin for sending messages from JMeter to my console app via MQTT protocol (eclipse-mosquitto server v2.0.14). Console app gets messages via MQTTnet.Extensions.ManagedClient v3.1.2. But unfortunately, MQTTnet.MqttApplicationMessage.ContentType = null always. I would like to have "application/json" there. Does it possible to set ContentType for Payload?

chongyuanyin commented 10 months ago

Does your console app use MQTT v5.0 protocol?