public class FirmwareDownloadStatus
extends java.lang.Object
This indicates the status of this version of the code after a firmware update process.
| Modifier and Type | Field and Description |
|---|---|
static int |
DOWNLOAD_STATUS_ERROR_BAD_TARGET_INFO
Bad target info.
|
static int |
DOWNLOAD_STATUS_ERROR_NOT_EVEN_USING_OLD_VERSION
The target reset, but could not run the code indicated by Version Number.
|
static int |
DOWNLOAD_STATUS_ERROR_USING_OLD_VERSION
The target reset, but could not run the code indicated by Version Number.
|
static int |
DOWNLOAD_STATUS_OK
The target successfully reset and is running the code indicated by
version number.
|
| Constructor and Description |
|---|
FirmwareDownloadStatus(int target,
int status,
byte[] newVersion,
byte[] oldVersion)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getNewVersion()
Returns the new version of the updated target.
|
byte[] |
getOldVersion()
Returns the previous version of the updated target.
|
int |
getStatus()
Returns the status of the firmware download.
|
int |
getTarget()
Returns the firmware target number.
|
public static final int DOWNLOAD_STATUS_ERROR_BAD_TARGET_INFO
DOWNLOAD_STATUS_OK,
DOWNLOAD_STATUS_ERROR_USING_OLD_VERSION,
DOWNLOAD_STATUS_ERROR_NOT_EVEN_USING_OLD_VERSION,
Constant Field Valuespublic static final int DOWNLOAD_STATUS_ERROR_NOT_EVEN_USING_OLD_VERSION
DOWNLOAD_STATUS_OK,
DOWNLOAD_STATUS_ERROR_USING_OLD_VERSION,
DOWNLOAD_STATUS_ERROR_BAD_TARGET_INFO,
Constant Field Valuespublic static final int DOWNLOAD_STATUS_ERROR_USING_OLD_VERSION
DOWNLOAD_STATUS_OK,
DOWNLOAD_STATUS_ERROR_NOT_EVEN_USING_OLD_VERSION,
DOWNLOAD_STATUS_ERROR_BAD_TARGET_INFO,
Constant Field Valuespublic static final int DOWNLOAD_STATUS_OK
DOWNLOAD_STATUS_ERROR_USING_OLD_VERSION,
DOWNLOAD_STATUS_ERROR_NOT_EVEN_USING_OLD_VERSION,
DOWNLOAD_STATUS_ERROR_BAD_TARGET_INFO,
Constant Field Valuespublic FirmwareDownloadStatus(int target,
int status,
byte[] newVersion,
byte[] oldVersion)
Depending on the status code, old or new version will be used:
DOWNLOAD_STATUS_OK, new version of the target will be
used.DOWNLOAD_STATUS_ERROR_USING_OLD_VERSION, old version will
be used.DOWNLOAD_STATUS_ERROR_NOT_EVEN_USING_OLD_VERSION preferably
new version will be used, but it is not needed to be specify.DOWNLOAD_STATUS_ERROR_BAD_TARGET_INFO none will be used.target - The target number that has just been uploaded.status - The status of the firmware download.newVersion - The new version of the target that has just been
uploaded.oldVersion - The old version of the target that has just been
uploaded.DOWNLOAD_STATUS_OK,
DOWNLOAD_STATUS_ERROR_USING_OLD_VERSION,
DOWNLOAD_STATUS_ERROR_NOT_EVEN_USING_OLD_VERSION,
DOWNLOAD_STATUS_ERROR_BAD_TARGET_INFOpublic byte[] getNewVersion()
null.null if it was not specified.public byte[] getOldVersion()
null.null if it was not specified.public int getStatus()
DOWNLOAD_STATUS_OK,
DOWNLOAD_STATUS_ERROR_USING_OLD_VERSION,
DOWNLOAD_STATUS_ERROR_NOT_EVEN_USING_OLD_VERSION,
DOWNLOAD_STATUS_ERROR_BAD_TARGET_INFOpublic int getTarget()
© Copyright 2014 Etherios, Inc. All rights reserved. Etherios, Inc. is a Division of Digi International Inc.