- create
Return an MQTT client instance
- connect
Connects to an MQTT server calling connectHandler after connection
- disconnect
Disconnects from the MQTT server calling disconnectHandler after disconnection
- publish
Sends the PUBLISH message to the remote MQTT server
- publishHandler
Sets handler which will be called each time server publish something to client
- subscribe
Subscribes to the topic and adds a handler which will be called after the
request is sent
- subscribeCompletionHandler
Sets handler which will be called after SUBACK packet receiving
- unsubscribe
Unsubscribe from receiving messages on given topic
- unsubscribeCompletionHandler
Sets handler which will be called after UNSUBACK packet receiving
- clientId
- closeHandler
Set a handler that will be called when the connection with server is closed
- exceptionHandler
Set an exception handler for the client, that will be called when an error
happens in internal netty