QBlockMode

Whether a CoapClient uses Q-Block (RFC 9177) instead of Block1 and Block2 (RFC 7959) for its requests.

Entries

Link copied to clipboard

Never: every request uses RFC 7959, and a response carrying Q-Block1 or Q-Block2 is rejected (§4.1).

Link copied to clipboard

When the server supports it, which the client finds out once per server with a Confirmable GET /.well-known/core carrying Q-Block2 0/0/16 (RFC 9177 §4.1 requires a Confirmable message for this). Requests wait for that probe; servers that do not support Q-Block, or do not answer the probe, get RFC 7959.

Link copied to clipboard

Always, without a probe, for servers the application knows to support 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.