public static enum DeviceFirmware.FirmwareState extends Enum<DeviceFirmware.FirmwareState>
The firmware update process is separated into two distinct actions, Downloading Firmware, and Updating Firmware.
The status of each of these actions is stored in a separate attribute on the device.
The mgmt.firmware.state
attribute describes the status of the firmware download. The possible values for
mgmt.firmware.state are:
| Value | State | Meaning |
|---|---|---|
| 0 | Idle | The device is currently not in the process of downloading firmware |
| 1 | Downloading | The device is currently downloading firmware |
| 2 | Downloaded | The device has successfully downloaded a firmware update and it is ready to install |
| Enum Constant and Description |
|---|
DOWNLOADED |
DOWNLOADING |
IDLE |
| Modifier and Type | Method and Description |
|---|---|
int |
getState()
Returns the current Firmware download State
|
static DeviceFirmware.FirmwareState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeviceFirmware.FirmwareState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeviceFirmware.FirmwareState IDLE
public static final DeviceFirmware.FirmwareState DOWNLOADING
public static final DeviceFirmware.FirmwareState DOWNLOADED
public static DeviceFirmware.FirmwareState[] values()
for (DeviceFirmware.FirmwareState c : DeviceFirmware.FirmwareState.values()) System.out.println(c);
public static DeviceFirmware.FirmwareState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getState()
Copyright © 2019. All rights reserved.