Package de.smartsquare.starter.mqtt

Types

AnnotationCollector
Link copied to clipboard
class AnnotationCollector : BeanPostProcessor
Helper class to find all beans with methods annotated with MqttSubscribe.
BrokerConnectException
Link copied to clipboard
class BrokerConnectException(message: String, cause: Throwable?) : RuntimeException
Exception thrown when the connection to mqtt broker fails.
MqttAutoConfiguration
Link copied to clipboard
Main entry point for the spring auto configuration.
MqttConfigurationException
Link copied to clipboard
class MqttConfigurationException(message: String) : RuntimeException
Exception thrown when invalid methods with MqttSubscribe are found.
MqttMessageAdapter
Link copied to clipboard
class MqttMessageAdapter(objectMapper: ObjectMapper)
Adapter class with methods for converting from and to mqtt payloads.
MqttProperties
Link copied to clipboard
data class MqttProperties(port: Int, @NotEmpty() host: String, @NotEmpty() clientId: String?, @NotEmpty() username: String, @NotEmpty() password: String, group: String?, ssl: Boolean)
Properties for connection to the mqtt broker.
MqttPublisher
Link copied to clipboard
class MqttPublisher(adapter: MqttMessageAdapter, client: Mqtt3Client)
Class with convenience methods for publishing a message on the mqtt broker.
MqttRouter
Link copied to clipboard
class MqttRouter(collector: AnnotationCollector, adapter: MqttMessageAdapter, config: MqttProperties, client: Mqtt3Client) : InitializingBean
Helper class that subscribes to the mqtt broker and routes received messages to the configured subscribers (methods annotated with MqttSubscribe).
MqttSubscribe
Link copied to clipboard
annotation class MqttSubscribe(topic: String, qos: MqttQos, shared: Boolean)
Marker annotation for methods that should receive messages from the mqtt broker.