|
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.
| heartbeat | Heartbeat object. |
| sensorId | Sensor ID to monitor. |
| address | IP address to listen on (use kIpAddress_AnyV4() to listen on all interfaces). |
| port | UDP 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. |