Gocator API

◆ GoSensor_Upgrade()

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
sensorGoSensor object.
sourcePathLocal file system path to the upgrade file.
onUpdateCallback function to receive progress updates, or kNULL.
contextContext handle to be passed to the upgrade callback.
Returns
Operation status.