public abstract class Mqtt
extends java.lang.Object
implements org.eclipse.paho.client.mqttv3.MqttCallback
| Modifier and Type | Method and Description |
|---|---|
void |
connectionLost(java.lang.Throwable throwable)
Event fired when the connection with the MQTT broker is lost.
|
void |
deliveryComplete(org.eclipse.paho.client.mqttv3.IMqttDeliveryToken iMqttDeliveryToken)
Event fired when the message arrived on the MQTT broker.
|
void |
messageArrived(java.lang.String topic,
org.eclipse.paho.client.mqttv3.MqttMessage mqttMessage)
Event fired when the message arrived on the MQTT broker.
|
IotHubTransportMessage |
receive()
Method to receive messages on mqtt broker connection.
|
public IotHubTransportMessage receive()
nullpublic void connectionLost(java.lang.Throwable throwable)
connectionLost in interface org.eclipse.paho.client.mqttv3.MqttCallbackthrowable - Reason for losing the connection.public void messageArrived(java.lang.String topic,
org.eclipse.paho.client.mqttv3.MqttMessage mqttMessage)
messageArrived in interface org.eclipse.paho.client.mqttv3.MqttCallbacktopic - the topic on which message arrived.mqttMessage - the message arrived on the Mqtt broker.public void deliveryComplete(org.eclipse.paho.client.mqttv3.IMqttDeliveryToken iMqttDeliveryToken)
deliveryComplete in interface org.eclipse.paho.client.mqttv3.MqttCallbackiMqttDeliveryToken - the MqttDeliveryToken for which the message was successfully sent.Copyright © 2023. All rights reserved.