public static interface WifiConnectHelper.UploadListener
Modifier and Type | Method and Description |
---|---|
void |
canceledUpload()
if network is disconnected between neckband and smart phone, then will be called this function.
|
void |
completedUpload(boolean success)
when completed upload this function will be called.
|
void |
errorWhenUpload(int code)
this is called realtime when meet error
|
void |
startUpload()
called this function after started file upload
|
java.lang.String |
takeDeltaMD5()
firmware must check validation
|
byte |
takeFirmwarePackageType()
this function take fota package type and support full package and delta package ( difference between current and next version )
|
void |
uploading(int progress)
this function will be called as progress
|
void startUpload()
void uploading(int progress)
progress
- this parameter has 0 ~ 100 % valuevoid canceledUpload()
void completedUpload(boolean success)
success
- to upload could be failed.void errorWhenUpload(int code)
code
- CODE_FAILED = 100, CODE_DONE = 101, CODE_FILE_NOT_EXIST = 102, CODE_INTERNAL_FULL = 103, CODE_EMPTY_PACKAGE_TYPE = 104, CODE_MD5_EMPTY = 105,
CODE_PACKAGE_MD5_WRONG = 106;byte takeFirmwarePackageType()
java.lang.String takeDeltaMD5()