Class CoapClientOptions
The settings a CoAP endpoint is built from.
public sealed class CoapClientOptions
- Inheritance
-
CoapClientOptions
- Inherited Members
Properties
AckTimeoutMs
Gets how long to wait for the first acknowledgment, in milliseconds.
public uint AckTimeoutMs { get; init; }
Property Value
Remarks
Zero selects RFC 7252's two seconds. Each wait after the first doubles, and the RFC forbids a first wait shorter than two seconds on a network without congestion control.
Bind
Gets the local address to bind, or null for the default.
public string? Bind { get; init; }
Property Value
Host
Gets the peer hostname or IP address.
public required string Host { get; init; }
Property Value
MaxRetransmits
Gets how many times to retransmit an unacknowledged request.
public uint MaxRetransmits { get; init; }
Property Value
Port
Gets the peer UDP port, conventionally 5683 for plaintext CoAP.
public required ushort Port { get; init; }
Property Value
Reliability
Gets whether requests are acknowledged and retried.
public Reliability Reliability { get; init; }