Skip to main content
Version: 5.7.0

SetPacketTimeouts

Sets the packet timeouts using a list of integers that represent timeout values in seconds for each packet retry. The first item in the list represents the timeout for the first packet attempt, the second for the second packet attempt, and so on.

The number of entries in this array determines how many packet retries will occur. By default, the packet timeout array is {15, 20, 35, 50}

Method Parameters

ParameterDescription
intervalInSecondsThe time between heartbeats in milliseconds

Usage

http://localhost:3000
var packetTimeouts = new List<int> { 15, 20, 35, 50 };
_bc.SetPacketTimeouts(packetTimeouts);