Interface MqttMessageSubscriber


  • @NonNullByDefault
    public interface MqttMessageSubscriber
    Implement this interface and register on the {@see MqttBrokerConnection} to get notified of incoming Mqtt messages on the given topic.
    Author:
    David Graeff - Initial contribution
    • Method Detail

      • processMessage

        void processMessage​(String topic,
                            byte[] payload)
        Process a received MQTT message.
        Parameters:
        topic - The mqtt topic on which the message was received.
        payload - content of the message.