All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.mobileconnectors.iot.AWSIotMqttQos Maven / Gradle / Ivy

Go to download

The AWS Android SDK for AWS IoT module holds the client classes that are used for communicating with AWS IoT Service

There is a newer version: 2.6.27
Show newest version

package com.amazonaws.mobileconnectors.iot;

/**
 * Enum to encapsulate the QoS levels allowed by the AWS IoT Service. See:
 * http://docs.aws.amazon.com/iot/latest/developerguide/protocols.html
 */
public enum AWSIotMqttQos {
    /** QoS zero. */
    QOS0,
    /** QoS one. */
    QOS1;

    /**
     * Get as an integer to use in MQTT calls requiring an int.
     * 
     * @return integer equivalent of the QoS value.
     */
    public int asInt() {
        return (this == QOS0 ? 0 : 1);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy