Class PublishReturn

java.lang.Object
software.amazon.awssdk.crt.mqtt5.PublishReturn

public class PublishReturn extends Object
The data returned when a publish is made to a topic the MQTT5 client is subscribed to. The data contained within can be gotten using the get functions. For example, getPublishPacket will return the PublishPacket received from the server.
  • Method Details

    • getPublishPacket

      public PublishPacket getPublishPacket()
      Returns the PublishPacket returned from the server or Null if none was returned.
      Returns:
      The PublishPacket returned from the server.