Enum AnjayFirmwareUpdate.InitialState.InitialResult

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DOWNLOADED
      Corresponds to the "Downloaded" State and "Initial" Result.
      DOWNLOADING
      Corresponds to the "Downloading" State and "Initial" Result.
      FAILED
      Corresponds to the "Idle" State "Firmware update failed" Result.
      INTEGRITY_FAILURE
      Corresponds to the "Idle" State and "Integrity check failure" Result.
      NEUTRAL
      Corresponds to the "Idle" State and "Initial" Result.
      SUCCESS
      Corresponds to the "Idle" State and "Firmware updated successfully" Result.
      UPDATING
      Corresponds to the "Updating" State and "Initial" Result.
    • Enum Constant Detail

      • DOWNLOADED

        public static final AnjayFirmwareUpdate.InitialState.InitialResult DOWNLOADED
        Corresponds to the "Downloaded" State and "Initial" Result. Shall be used when the device unexpectedly rebooted when the firmware image has already been downloaded into some non-volatile memory.
      • DOWNLOADING

        public static final AnjayFirmwareUpdate.InitialState.InitialResult DOWNLOADING
        Corresponds to the "Downloading" State and "Initial" Result. Shall be used when the device can determine that it unexpectedly rebooted during the download of the firmware image, and it has all the information necessary to resume the download. Such information shall then be passed via other fields in the AnjayFirmwareUpdate.InitialState class.
      • NEUTRAL

        public static final AnjayFirmwareUpdate.InitialState.InitialResult NEUTRAL
        Corresponds to the "Idle" State and "Initial" Result. Shall be used when the library is initializing normally, not after a firmware update attempt.
      • SUCCESS

        public static final AnjayFirmwareUpdate.InitialState.InitialResult SUCCESS
        Corresponds to the "Idle" State and "Firmware updated successfully" Result. Shall be used when the device has just rebooted after successfully updating the firmware.
      • INTEGRITY_FAILURE

        public static final AnjayFirmwareUpdate.InitialState.InitialResult INTEGRITY_FAILURE
        Corresponds to the "Idle" State and "Integrity check failure" Result. Shall be used when the device has just rebooted after an unsuccessful firmware update attempt that failed due to failed integrity check of the firmware package.
      • FAILED

        public static final AnjayFirmwareUpdate.InitialState.InitialResult FAILED
        Corresponds to the "Idle" State "Firmware update failed" Result. Shall be used when the device has just rebooted after a firmware upgrade attempt that was unsuccessful for reason any other than integrity check.
    • Method Detail

      • values

        public static AnjayFirmwareUpdate.InitialState.InitialResult[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AnjayFirmwareUpdate.InitialState.InitialResult c : AnjayFirmwareUpdate.InitialState.InitialResult.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AnjayFirmwareUpdate.InitialState.InitialResult valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null