FirmwareUpdaterLinkOsUpdateFirmware(String, Int64, FirmwareUpdateHandler) Method
|
Update firmware on the printer using the specified timeout.
Namespace: Zebra.Sdk.PrinterAssembly: SdkApi.Core (in SdkApi.Core.dll) Version: 4.0.3435
Syntaxvoid UpdateFirmware(
string firmwareFilePath,
long timeout,
FirmwareUpdateHandler handler
)
Sub UpdateFirmware (
firmwareFilePath As String,
timeout As Long,
handler As FirmwareUpdateHandler
)
void UpdateFirmware(
String^ firmwareFilePath,
long long timeout,
FirmwareUpdateHandler^ handler
)
Parameters
- firmwareFilePath String
- File path of firmware file.
- timeout Int64
- Timeout in milliseconds. The minimum allowed timeout is 10 minutes (600000ms) due to the need to
reset the printer after flashing the firmware. If a timeout value less than the minimum is provided, the minimum will be
used instead.
- handler FirmwareUpdateHandler
- Callback for firmware updating status.
Exceptions| Exception | Condition |
|---|
| ConnectionException | If the connection can not be opened, is closed prematurely, or connection cannot be
established after firmware download is complete. |
| ZebraPrinterLanguageUnknownException | If the printer language can not be determined. |
| ZebraIllegalArgumentException | If an invalid firmware file is specified for the printer. |
| DiscoveryException | If an error occurs while waiting for the printer to come back online. |
| TimeoutException | If the maximum timeout is reached prior to the printer coming back online with the new
firmware. |
| FileNotFoundException | Firmware file not found. |
Remarks
If the firmware currently on the printer has the same version number as the firmware file, the firmware will not be sent to the printer.
See Also