Package ej.aws.iot

Class AwsIotMessage


  • public class AwsIotMessage
    extends Object
    AWS Iot message wrapper
    • Constructor Detail

      • AwsIotMessage

        public AwsIotMessage​(String topic,
                             int qos,
                             boolean retained,
                             byte[] payload)
        Create an IoT message.
        Parameters:
        topic - MQTT topic
        qos - MQTT quality of service
        retained - should the message be retained by the MQTT broker.
        payload - message data.
    • Method Detail

      • getTopic

        public String getTopic()
        Gets the topic.
        Returns:
        the topic.
      • getPayload

        public byte[] getPayload()
        Gets the payload.
        Returns:
        the payload.
      • getQos

        public int getQos()
        Gets the qos.
        Returns:
        the qos.
      • isRetained

        public boolean isRetained()
        Gets the retained.
        Returns:
        the retained.