Gocator API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Macros Modules Pages

kStatus GoSensor_SetDataHandler | ( | GoSensor | sensor,
|  | GoSensorDataSetFx | function,
|  | kPointer | context
| ) |  |

Sets the data callback function to be used upon receipt of data.

Version
  Introduced in firmware 4.1.3.106

Parameters

  sensor | GoSensor object.
  function | The function pointer to use when data has been received from the sensor. Send kNULL to revert back to the GoSystem data set storage behavior.
  context | The context to use with the function pointer.

Returns
  Operation status.

See also
  GoSensorDataSetFx