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

  system | GoSystem object.
  data | Set of sensor data messages.
  timeout | Duration to wait for messages, in microseconds.

Returns
  Operation status.

See also
  GoDestroy, GoSystem_SetDataHandler, GoSystem_SetDataCapacity, GoSystem_EnableData