Package software.amazon.awssdk.crt.iot
Class MqttRequestResponse
java.lang.Object
software.amazon.awssdk.crt.iot.MqttRequestResponse
Encapsulates a response to an AWS IoT Core MQTT-based service request
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]Gets the payload of the response that correlates to a submitted request.getTopic()Gets the MQTT topic that the response was received on.
-
Method Details
-
getTopic
Gets the MQTT topic that the response was received on. Different topics map to different types within the service model, so we need this value in order to know what to deserialize the payload into.- Returns:
- the MQTT topic that the response was received on
-
getPayload
public byte[] getPayload()Gets the payload of the response that correlates to a submitted request.- Returns:
- Payload of the response that correlates to a submitted request.
-