Gocator API

◆ GoSystem_ReceiveData()

kStatus GoSystem_ReceiveData ( GoSystem  system,
GoDataSet data,
k64u  timeout 
)

Receives a set of sensor data messages.

Sensor data messages can be received synchronously using this function or asynchronously by registering a callback with the GoSystem_SetDataHandler function.

NOTE: Data received with this function must be destroyed after use, otherwise a memory leak will result.

Version
Introduced in firmware 4.0.10.27
Parameters
systemGoSystem object.
dataSet of sensor data messages.
timeoutDuration to wait for messages, in microseconds.
Returns
Operation status.
See also
GoDestroy, GoSystem_SetDataHandler, GoSystem_SetDataCapacity, GoSystem_EnableData