MqttClient
pl.waw.ibspan.scala_mqtt_wrapper.MqttClient
class MqttClient(val mqttSettings: MqttSettings, val mqttSessionSettings: MqttSessionSettings, val loggingSettings: Option[MqttLoggingSettings])(implicit system: ActorSystem[_])
MQTT client
Value parameters
- loggingSettings
-
optional logging settings
- mqttSessionSettings
-
MQTT session settings
- mqttSettings
-
MQTT client settings
- system
-
actor system
Attributes
- Constructor
-
create a new MQTT client
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Shutdown the client
Shutdown the client
Shutdowns command queue, command merge sink / command broadcast source, publish merge sink, and event broadcast source (along with the MQTT session)
Attributes
- Returns
-
a future that completes after closing command queue, publish merge sink, and the (optional) event broadcast consumer (if option withEventBroadcastSourceBackpressure is false)
Concrete fields
val publishMergeSinkSource: Source[MqttPublishMessage, (Sink[MqttPublishMessage, NotUsed], UniqueKillSwitch)]
val publishMergeSinkSourceWithOptionalLogger: Source[MqttPublishMessage, (Sink[MqttPublishMessage, NotUsed], UniqueKillSwitch)]
In this article