CoapCode

value class CoapCode(val value: Int)(source)

A CoAP code: a 3-bit class and a 5-bit detail, written c.dd (RFC 7252 §3, §12.1).

Class 0 holds the request methods (and 0.00 for Empty messages), classes 2, 4 and 5 hold responses, and class 7 holds the signaling codes of CoAP over reliable transports (RFC 8323 §5).

Constructors

Link copied to clipboard
constructor(value: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

The registered name, such as "Content", or null for an unregistered code.

Link copied to clipboard
val detail: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val value: Int

Functions

Link copied to clipboard
open override fun toString(): String

2.05 Content, or 2.17 for an unregistered code.