Interface MqttConnectedListener


  • public interface MqttConnectedListener
    Callback invoked after a high-level client connection has been established.
    • Method Detail

      • onConnected

        void onConnected​(MqttConnectedContext context)
        Handles a successful MQTT connection.

        The PLCcom MQTT client catches runtime exceptions thrown by this method so application callback failures do not close the MQTT connection.

        Parameters:
        context - immutable connection context