MqttClient

Class that wraps com.hivemq.client.mqtt.MqttClient in order to initialize MQTT connection and send data

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun connect(): Mqtt3ConnAck

Connect to MQTT broker

Link copied to clipboard

Disconnect mqttClient

Link copied to clipboard
fun send(topic: Topic, message: MqttRecordMessage)