Flash Firmware - Honeywell 8680i User Manual

Wearable mini mobile computer
Hide thumbs Also See for 8680i:
Table of Contents

Advertisement

Flash Firmware

Note: This API is only for C# version assembly.
// The definitions of the delegate functions for flashing
private void OnFwFileTransfering(ulong connID, int sentSize, int totalSize)
{
}
private void OnFwFlashed(ulong connID, FlashResult res)
{
}
// Register the delegate functions to API assembly at the beginning.
// apiWrapper is the instance of our WiFi SDK assembly.
public void Init()
{
}
// Flash firmware to the selected scanners
private void btnFlashFW_Click(object sender, EventArgs e)
{
32
Log(string.Format("Scanner [{0}], Bytes transferred:{1}/{2}", connID,
sentSize, totalSize));
if (sentSize == totalSize)
Log(string.Format("Scanner [{0}] is flashing firmware. Please wait...",
connID));
Log(string.Format("Scanner [{0}], Flash result: {1}", connID,
res == FlashResult.Success ? "Success. Restarting..." : "Failed"));
apiWrapper.OnTransfering = new OnFileTransfering(OnFwFileTransfering);
apiWrapper.OnFlashed = new OnFileFlashed(OnFwFlashed);
List<uint> ids = GetSelectedScannerIDs();
if(ids.count == 0)
return;
try
{
apiWrapper.SetFirmwareInfo(tbFwPath.Text, tbFwVersion.Text);
foreach (uint id in ids)
{
Log(string.Format("Start to flash firmware, connecting to Scanner
[{0}] ...", id));
apiWrapper.AddFlashingClient(id);
8680i WiFi SDK User Guide

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents