ZmqttProducerV5
faststream.mqtt.publisher.producer.ZmqttProducerV5 #
Bases: ZmqttBaseProducer
Producer for MQTT 5.0 — publishes with PublishProperties.
Source code in faststream/mqtt/publisher/producer.py
publish async #
publish(cmd: MQTTPublishCommand) -> None
Source code in faststream/mqtt/publisher/producer.py
request async #
request(cmd: MQTTPublishCommand) -> Message
Request/reply for MQTT 5.0 via zmqtt's native client.request().
zmqtt auto-generates a unique reply topic. We pass our correlation ID explicitly so the responder echoes it back and the caller can verify it on the response StreamMessage.
Source code in faststream/mqtt/publisher/producer.py
publish_batch async #
publish_batch(cmd: MQTTPublishCommand) -> None