Gocator API
kStatus GoHeartbeat_Start ( GoHeartbeat  heartbeat,
k32u  sensorId,
kIpAddress  address,
k32u  port 
)

Starts heartbeat monitoring for a sensor.

This function begins listening for UDP heartbeat packets from the specified sensor. If heartbeats stop arriving within the configured timeout, the disconnect callback will be invoked.

Version
Introduced in firmware 6.6.x.x
Parameters
heartbeatHeartbeat object.
sensorIdSensor ID to monitor.
addressIP address to listen on (use kIpAddress_AnyV4() to listen on all interfaces).
portUDP port to listen on. Pass 0 to let the OS assign an ephemeral free port; this is the recommended setting because it allows a single process to monitor multiple sensors without port collisions. Use GoHeartbeat_LocalPort() after this call to retrieve the actually-bound port.
Returns
Operation status.