Package com.blukii.sdk.config
Enum Class DisconnectReason
- All Implemented Interfaces:
Serializable
,Comparable<DisconnectReason>
,Constable
Enum
DisconnectReason
represents the reasons why
a connection has been disconnected-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionConnection failed because of unauthorized accessConnection is established but not accessible by the application.Disconnect triggered by device or because of out of rangeDisconnect triggered by actionBlukii.disconnect()
Disconnect triggered by actionBlukii.writeSystemReset(int, ResponseListener)
with mode=Blukii.SETTING_BLUKII_SYSTEM_RESET_FACTORY_DATA_RESET
Disconnect triggered by actionBlukii.writeSystemReset(int, ResponseListener)
with mode=Blukii.SETTING_BLUKII_SYSTEM_RESET_FACTORY_FLASH_RESET
Disconnect triggered by actionBlukii.writeSystemReset(int, ResponseListener)
with mode=Blukii.SETTING_BLUKII_SYSTEM_RESET_FACTORY_IMAGE_RESET
Connection failed because of internal errorConnection failed because device is no blukii deviceDisconnect triggered by actionBlukii.writeSystemReset(int, ResponseListener)
with mode=Blukii.SETTING_BLUKII_SYSTEM_RESET_REBOOT
Disconnect triggered by connection timeout (seeBlukii.setConnectionTimeout(int)
)Connection failed because device type does fit to Blukii class type -
Method Summary
Modifier and TypeMethodDescriptionstatic DisconnectReason
Returns the enum constant of this class with the specified name.static DisconnectReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
Disconnect
Disconnect triggered by actionBlukii.disconnect()
-
Device
Disconnect triggered by device or because of out of range -
Timeout
Disconnect triggered by connection timeout (seeBlukii.setConnectionTimeout(int)
) -
Reboot
Disconnect triggered by actionBlukii.writeSystemReset(int, ResponseListener)
with mode=Blukii.SETTING_BLUKII_SYSTEM_RESET_REBOOT
-
FactoryDataReset
Disconnect triggered by actionBlukii.writeSystemReset(int, ResponseListener)
with mode=Blukii.SETTING_BLUKII_SYSTEM_RESET_FACTORY_DATA_RESET
-
FactoryImageReset
Disconnect triggered by actionBlukii.writeSystemReset(int, ResponseListener)
with mode=Blukii.SETTING_BLUKII_SYSTEM_RESET_FACTORY_IMAGE_RESET
-
FactoryFlashReset
Disconnect triggered by actionBlukii.writeSystemReset(int, ResponseListener)
with mode=Blukii.SETTING_BLUKII_SYSTEM_RESET_FACTORY_FLASH_RESET
-
AuthenticationFailed
Connection failed because of unauthorized access -
InternalError
Connection failed because of internal error -
ConnectionNotAccessibleError
Connection is established but not accessible by the application.blukii is repairing the connection within the next 10 seconds. For this time the blukii is not accessible.
-
NoBlukii
Connection failed because device is no blukii device -
WrongBlukiiType
Connection failed because device type does fit to Blukii class type
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-