CoapOption

class CoapOption(val number: Int, value: ByteArray)(source)

One option in a message: a number and its raw value (RFC 7252 §5.4). The meaning of the number, if registered, is in definition.

Constructors

Link copied to clipboard
constructor(number: Int, value: ByteArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val length: Int
Link copied to clipboard
val number: Int
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

The value as UTF-8 text, for string-format options.

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

Uri-Path: tv1, Observe: 0, or 65000: 0a0b for unregistered numbers.

Link copied to clipboard

The value as an unsigned integer (RFC 7252 §3.2: big-endian, shortest form, zero is empty).