zwave-js
Version:
Z-Wave driver written entirely in JavaScript/TypeScript
25 lines • 1.02 kB
TypeScript
export interface OTWFirmwareUpdateProgress {
/** How many fragments of the firmware update have been transmitted. Together with `totalFragments` this can be used to display progress. */
sentFragments: number;
/** How many fragments the firmware update consists of. */
totalFragments: number;
/** The total progress of the firmware update in %, rounded to two digits. */
progress: number;
}
export declare enum OTWFirmwareUpdateStatus {
Error_Timeout = 0,
/** The maximum number of retry attempts for a firmware fragments were reached */
Error_RetryLimitReached = 1,
/** The update was aborted by the bootloader */
Error_Aborted = 2,
/** This controller does not support firmware updates */
Error_NotSupported = 3,
OK = 255
}
export interface OTWFirmwareUpdateResult {
success: boolean;
status: OTWFirmwareUpdateStatus;
/** The bootloader error code, if available when the update fails */
errorCode?: number;
}
//# sourceMappingURL=_Types.d.ts.map