|
Gocator API
|
| kStatus GoSensor_SetHeartbeatReconnectHandler | ( | GoSensor | sensor, |
| GoSensorHeartbeatReconnectFx | function, | ||
| kPointer | receiver | ||
| ) |
Sets the handler for heartbeat-based reconnect detection.
This callback is invoked when a previously disconnected sensor starts sending heartbeats again. The callback is invoked from a background thread.
Callback re-entry rules: see GoSensor_SetHeartbeatDisconnectHandler. The same constraints apply here - do not synchronously call GoSystem_* APIs from this callback; set a flag and act from your main thread instead.
| sensor | GoSensor object. |
| function | Reconnect callback function (or kNULL to unregister). |
| receiver | Receiver argument for callback. |