public interface MqttListener
MqttContext
.Modifier and Type | Method and Description |
---|---|
void |
messageReceived(java.lang.String topic,
DataReader dataReader)
Called when a message was received on the given topic.
|
void messageReceived(java.lang.String topic, DataReader dataReader)
topic
- name of the topic on the message was published to.dataReader
- reader to get the content of the message.