Interface MqttMessageListener


public interface MqttMessageListener
Receives the messages of one subscription made with MqttClient.subscribe(String, int, MqttMessageListener). Called on the EDT.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    messageArrived(String topic, byte[] payload, boolean retained)
    A message matching the subscription's topic filter arrived.
  • Method Details

    • messageArrived

      void messageArrived(String topic, byte[] payload, boolean retained)

      A message matching the subscription's topic filter arrived.

      Parameters
      • topic: the topic name the message was published to

      • payload: the message body

      • retained: true when the broker sent it from its retained store