Interface MqttClientConnectionEvents


  • public interface MqttClientConnectionEvents
    Interface used to receive connection events from the CRT
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onConnectionInterrupted​(int errorCode)
      connection was lost (or disconnected), reconnect will be attempted automatically until disconnect() is called
      void onConnectionResumed​(boolean sessionPresent)
      called on first successful connect, and whenever a reconnect succeeds
    • Method Detail

      • onConnectionInterrupted

        void onConnectionInterrupted​(int errorCode)
        connection was lost (or disconnected), reconnect will be attempted automatically until disconnect() is called
        Parameters:
        errorCode - AWS CRT error code, pass to CRT.awsErrorString(int) for a human readable error
      • onConnectionResumed

        void onConnectionResumed​(boolean sessionPresent)
        called on first successful connect, and whenever a reconnect succeeds
        Parameters:
        sessionPresent - true if the session has been resumed, false if the session is clean