MqttSubscribe

annotation class MqttSubscribe(topic: String, qos: MqttQos, shared: Boolean)

Marker annotation for methods that should receive messages from the mqtt broker. Methods have to follow the rules defined in AnnotationCollector.

Constructors

MqttSubscribe
Link copied to clipboard
fun MqttSubscribe(topic: String, qos: MqttQos, shared: Boolean = false)

Properties

qos
Link copied to clipboard
val qos: MqttQos
The quality of service level to use.
shared
Link copied to clipboard
val shared: Boolean = false
If the topic should be shared.
topic
Link copied to clipboard
val topic: String
The topic to subscribe on.

Sources

jvm source
Link copied to clipboard