implicit final class VertxMqttClientOps extends AnyVal
- Alphabetic
- By Inheritance
- VertxMqttClientOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new VertxMqttClientOps(target: MqttClient)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def connectL(port: Int, host: String, serverName: String): Task[MqttConnAckMessage]
Connects to an MQTT server calling connectHandler after connection
Connects to an MQTT server calling connectHandler after connection
- port
port of the MQTT server
- host
hostname/ip address of the MQTT server
- serverName
the SNI server name
- returns
current MQTT client instance
- def connectL(port: Int, host: String): Task[MqttConnAckMessage]
Connects to an MQTT server calling connectHandler after connection
Connects to an MQTT server calling connectHandler after connection
- port
port of the MQTT server
- host
hostname/ip address of the MQTT server
- returns
current MQTT client instance
- def disconnectL(): Task[Unit]
Disconnects from the MQTT server calling disconnectHandler after disconnection
Disconnects from the MQTT server calling disconnectHandler after disconnection
- returns
current MQTT client instance
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def publishL(topic: String, payload: Buffer, qosLevel: MqttQoS, isDup: Boolean, isRetain: Boolean): Task[Int]
Sends the PUBLISH message to the remote MQTT server
Sends the PUBLISH message to the remote MQTT server
- topic
topic on which the message is published
- payload
message payload
- qosLevel
QoS level
- isDup
if the message is a duplicate
- isRetain
if the message needs to be retained
- returns
current MQTT client instance
- def subscribeL(topics: Map[String, Integer]): Task[Int]
Subscribes to the topic and adds a handler which will be called after the request is sent
Subscribes to the topic and adds a handler which will be called after the request is sent
- topics
topics you subscribe on
- returns
current MQTT client instance
- def subscribeL(topic: String, qos: Int): Task[Int]
Subscribes to the topic with a specified QoS level
Subscribes to the topic with a specified QoS level
- topic
topic you subscribe on
- qos
QoS level
- returns
current MQTT client instance
- val target: MqttClient
- def toString(): String
- Definition Classes
- Any
- def unsubscribeL(topic: String): Task[Int]
Unsubscribe from receiving messages on given topic
Unsubscribe from receiving messages on given topic
- topic
Topic you want to unsubscribe from
- returns
current MQTT client instance