Gocator API
k32u GoHeartbeat_LocalPort ( GoHeartbeat  heartbeat)

Returns the UDP port the heartbeat receiver is bound to.

After GoHeartbeat_Start succeeds, this returns the actual port in use - either the explicit port the caller requested, or the ephemeral port the OS assigned (when the caller passed 0). The returned value is what must be sent to the sensor in the GO_CONTROL_REGISTER_HEARTBEAT_CLIENT command.

Version
Introduced in firmware 6.6.x.x
Parameters
heartbeatHeartbeat object.
Returns
Bound UDP port, or 0 if Start has not been called yet.