Gocator API
GoHeartbeat.h File Reference

Description

Declares the GoHeartbeat class for fast sensor disconnection detection.

The GoHeartbeat class provides UDP-based heartbeat monitoring that can detect sensor disconnection within approximately 100ms, significantly faster than the standard health-based detection (~6 seconds).

Go to the source code of this file.

Macros

#define GO_HEARTBEAT_DEFAULT_INTERVAL_US
 Default heartbeat interval in microseconds (25ms).
 
#define GO_HEARTBEAT_DEFAULT_PORT
 Default UDP port for heartbeat communication. More...
 
#define GO_HEARTBEAT_DEFAULT_TIMEOUT_US
 Default heartbeat timeout in microseconds (100ms).
 
#define GO_HEARTBEAT_HTON16(x)
 Byte-order conversion macros for network packets. More...
 
#define GO_HEARTBEAT_MAGIC
 Magic number for heartbeat packets ("GO" in ASCII).
 

Typedefs

typedef void(kCall * GoHeartbeatDisconnectFx )(kPointer context, GoHeartbeat heartbeat, k32u sensorId)
 Defines the signature for a heartbeat disconnect callback function. More...
 
typedef void(kCall * GoHeartbeatReconnectFx )(kPointer context, GoHeartbeat heartbeat, k32u sensorId)
 Defines the signature for a heartbeat reconnect callback function. More...