Package 

Interface MqttMessageRespParseListener

    • Method Summary

      Modifier and Type Method Description
      abstract String getLocalKey(String topicId) Get localKey by topic id.
      abstract Array<String> getTopicSuffix() Get topic suffix
      abstract boolean isDataUpdated(String devId, int s, int o) Whether the message updated
      abstract void onMqttDpReceivedError(String topic, String errorCode, String errorMsg) Message parse occur some error.
      abstract void onMqttDpReceivedSuccess(String topicId, int protocol, JSONObject receiveData) Message parse occur some error.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getLocalKey

         abstract String getLocalKey(String topicId)

        Get localKey by topic id.

        Parameters:
        topicId - topic id what you subscribe, usually device id.
      • getTopicSuffix

         abstract Array<String> getTopicSuffix()

        Get topic suffix

      • isDataUpdated

         abstract boolean isDataUpdated(String devId, int s, int o)

        Whether the message updated

        Parameters:
        devId - device id
        s - message sequence number.
        o - connection sequence number.
      • onMqttDpReceivedError

         abstract void onMqttDpReceivedError(String topic, String errorCode, String errorMsg)

        Message parse occur some error.

        Parameters:
        topic - topic id, usually device id
        errorCode - error code
        errorMsg - error message
      • onMqttDpReceivedSuccess

         abstract void onMqttDpReceivedSuccess(String topicId, int protocol, JSONObject receiveData)

        Message parse occur some error.

        Parameters:
        topicId - topic id, usually device id
        protocol - Thing defined MQTT communication protocol number.
        receiveData - received json data.