commonMain.mqtt.packets.mqttv4.ConnectReturnCode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kmqtt-common-jvm Show documentation
Show all versions of kmqtt-common-jvm Show documentation
Kotlin Multiplatform MQTT client & embeddable and standalone broker
package mqtt.packets.mqttv4
public enum class ConnectReturnCode(public val value: Int) {
CONNECTION_ACCEPTED(0),
UNACCEPTABLE_PROTOCOL_VERSION(1),
IDENTIFIER_REJECTED(2),
SERVER_UNAVAILABLE(3),
BAD_USERNAME_PASSWORD(4),
NOT_AUTHORIZED(5);
public companion object {
public fun valueOf(value: Int): ConnectReturnCode? = values().firstOrNull { it.value == value }
}
}