public class MqttCallBack extends Object implements org.eclipse.paho.client.mqttv3.MqttCallback
| 构造器和说明 |
|---|
MqttCallBack() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connectionLost(Throwable throwable)
与服务器断开的回调
|
void |
deliveryComplete(org.eclipse.paho.client.mqttv3.IMqttDeliveryToken token)
消息发布成功的回调
|
void |
messageArrived(String topic,
org.eclipse.paho.client.mqttv3.MqttMessage message)
消息到达的回调
|
public void connectionLost(Throwable throwable)
connectionLost 在接口中 org.eclipse.paho.client.mqttv3.MqttCallbackpublic void messageArrived(String topic, org.eclipse.paho.client.mqttv3.MqttMessage message) throws Exception
messageArrived 在接口中 org.eclipse.paho.client.mqttv3.MqttCallbackExceptionpublic void deliveryComplete(org.eclipse.paho.client.mqttv3.IMqttDeliveryToken token)
deliveryComplete 在接口中 org.eclipse.paho.client.mqttv3.MqttCallbackCopyright © 2024. All rights reserved.