MqttConnection.messageArrived(String topic, org.eclipse.paho.client.mqttv3.MqttMessage mqttMessage) 方法

定义

Event fired when the message arrived on the MQTT broker.

public synchronized void messageArrived(String topic, org.eclipse.paho.client.mqttv3.MqttMessage mqttMessage)

参数

topic
String

the topic on which message arrived.

mqttMessage
org.eclipse.paho.client.mqttv3.MqttMessage

the message arrived on the Mqtt broker.

返回

synchronized void

适用于