Gocator API

- Home
- Types
- Files

All Classes Files Functions Variables Typedefs Macros Modules Pages

kStatus GoSystem_SetHealthHandler | ( | GoSystem | system,
|  | GoDataFx | function,
|  | kPointer | receiver
| ) |  |

Sets a callback function that can be used to receive sensor health messages asynchronously.

Sensor health messages can be received synchronously using the GoSystem_ReceiveHealth function or asynchronously by registering a callback function. If a callback function is registered, a background thread will be created to perform notifications.

To unregister a previously-registered health handler, call this function using kNULL in place of the callback function argument.

Version
  Introduced in firmware 4.0.10.27

Parameters

  system | GoSystem object.
  function | Health callback function (or kNULL to unregister).
  receiver | Receiver argument, passed to callback.

Returns
  Operation status.

See also
  GoDataFx, GoSystem_ReceiveHealth, GoSystem_SetDataCapacity, GoSystem_EnableData