-
public 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. -
-
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 ids
- 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 iderrorCode
- error codeerrorMsg
- error message
-
onMqttDpReceivedSuccess
abstract void onMqttDpReceivedSuccess(String topicId, int protocol, JSONObject receiveData)
Message parse occur some error.
- Parameters:
topicId
- topic id, usually device idprotocol
- Thing defined MQTT communication protocol number.receiveData
- received json data.
-
-
-
-