Gocator API

◆ GoSensor_UploadFile()

kStatus GoSensor_UploadFile ( GoSensor  sensor,
const kChar sourcePath,
const kChar destName 
)

Uploads a file to the connected sensor.

The following is a list of macros representing common files used in this operation:

  • GO_SENSOR_LIVE_JOB - Represents "_live.job".
  • GO_SENSOR_LIVE_REPLAY - Represents the recording file, "_live.rec".

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

Version
Introduced in firmware 4.0.10.27
Parameters
sensorGoSensor object.
sourcePathSource file system path for the file to be uploaded.
destNameDestination name for the uploaded file (maximum 63 characters).
Returns
Operation status.
Remarks
Calling this function will result in writing operations to flash storage if the destination is not a live file. Should the process be disrupted due to power loss or other factors, the sensor may enter Rescue mode.