Reason

Why a response was rejected. New reasons may be added before 1.0; use an else branch.

Entries

Link copied to clipboard

It failed verification and was dropped (RFC 8613 §8.4): a protected response that did not verify, a replay, or an unprotected response that is not an error. Its exchange goes on: a request waits for a response that verifies, and fails with CoapException.Reason.RESPONSE_TIMEOUT when none comes, with the last such failure as cause and their count in its message; an observation keeps its collectors.

Link copied to clipboard

An error that came without message security (RFC 8613 §8.2), which nothing acts on (ADR 0008): a request that has no verified response yet fails with CoapException.Reason.UNVERIFIED_RESPONSE, which carries it, and an established observation drops it.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.