Gocator API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Macros Modules Pages

kStatus GoSensor_Upgrade | ( | GoSensor | sensor,
|  | const kChar * | sourcePath,
|  | GoUpgradeFx | onUpdate,
|  | kPointer | context
| ) |  |

Upgrades sensor firmware.

This function will block until the upgrade is completed.

WARNING! This operation writes to flash storage. Review the user manual for implications.

This function results in flash storage modifications. If modifications are interrupted due to power loss, the sensor may reboot into Rescue mode.

The sensor does not need to be connected to perform an upgrade.

Version
  Introduced in firmware 4.0.10.27 and updated in 4.3.3.124

Parameters

  sensor | GoSensor object.
  sourcePath | Local file system path to the upgrade file.
  onUpdate | Callback function to receive progress updates, or kNULL.
  context | Context handle to be passed to the upgrade callback.

Returns
  Operation status.