Gocator API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Macros Modules Pages

kStatus GoAccelerator_SetAcceleratorUpdateHandler | ( | GoAccelerator | accelerator,
|  | kCallbackFx | function,
|  | kPointer | receiver
| ) |  |

Sets a handler for Accelerated sensor connect/disconnect updates for this object.

This handler will be called if the accelerator loses or regains connection to an attached sensor.

Version
  Introduced in firmware 4.6.4.66

Parameters

  accelerator | GoAccelerator object.
  function | Connection update callback function (or kNULL to unregister).
  receiver | Receiver argument for callback.

Returns
  Operation status.