Interface MqttClientConnectedListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MqttClientConnectedListener
Listener which is notified when a client is connected (a successful ConnAck message is received).
Since:
1.1
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Listener method which is notified when a client is connected (a successful ConnAck message is received).
  • Method Details

    • onConnected

      void onConnected(@NotNull @NotNull MqttClientConnectedContext context)
      Listener method which is notified when a client is connected (a successful ConnAck message is received).

      This method must not block.

      Parameters:
      context - provides context about the client that is now connected.