Table of Contents

Class CoapClientOptions

Namespace
Pamoja.Coap
Assembly
Pamoja.Coap.dll

The settings a CoAP endpoint is built from.

public sealed class CoapClientOptions
Inheritance
CoapClientOptions
Inherited Members

Properties

AckTimeoutMs

Gets how long to wait for an acknowledgement, in milliseconds.

public uint AckTimeoutMs { get; init; }

Property Value

uint

Bind

Gets the local address to bind, or null for the default.

public string? Bind { get; init; }

Property Value

string

Host

Gets the peer hostname or IP address.

public required string Host { get; init; }

Property Value

string

MaxRetransmits

Gets how many times to retransmit an unacknowledged request.

public uint MaxRetransmits { get; init; }

Property Value

uint

Port

Gets the peer UDP port, conventionally 5683 for plaintext CoAP.

public required ushort Port { get; init; }

Property Value

ushort

Reliability

Gets whether requests are acknowledged and retried.

public Reliability Reliability { get; init; }

Property Value

Reliability