Gocator API
|
Sets a callback function that can be used to receive sensor data messages asynchronously.
Sensor data messages can be received synchronously using the GoSystem_ReceiveData function or asynchronously by registering a callback function. If a callback function is registered, a background thread will be created to perform notifications. After using GoSystem_SetDataHandler function, SDK application is responsible for disposing of the GoDataSet objects that hold the data received from the sensor on the data connection.
To unregister a previously-registered data handler, call this function using kNULL in place of the callback function argument.
system | GoSystem object. |
function | Data callback function (or kNULL to unregister). |
receiver | Receiver argument for callback. |