MQTTPublisher
faststream.mqtt.MQTTPublisher #
MQTTPublisher(
topic: str,
*,
qos: QoS = AT_MOST_ONCE,
retain: bool = False,
headers: dict[str, str] | None = None,
persistent: bool = True,
title: str | None = None,
description: str | None = None,
schema: Any | None = None,
include_in_schema: bool = True,
)
Bases: ArgsContainer
Delayed MQTTPublisher registration object.
A copy of MQTTRegistrator.publisher(...) arguments for use in MQTTRoute.
Source code in faststream/mqtt/broker/router.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |