Gocator API

◆ GoAccelerator_SetAcceleratorUpdateHandler()

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
acceleratorGoAccelerator object.
functionConnection update callback function (or kNULL to unregister).
receiverReceiver argument for callback.
Returns
Operation status.