CoapDecodeFailed

data class CoapDecodeFailed(val id: Int, val rawData: List<Long>, val status: RuntimeError.CoapDecodeFailed.Status?, val optionalData: Long) : RuntimeError

The sensor could not decode a CoAP message it received.

Constructors

Link copied to clipboard
constructor(id: Int, rawData: List<Long>, status: RuntimeError.CoapDecodeFailed.Status?, optionalData: Long)

Types

Link copied to clipboard

What stopped the sensor decoding the message.

Properties

Link copied to clipboard
open override val id: Int

Id the device uses for this kind of error.

Link copied to clipboard

Extra detail whose meaning depends on status: the message code that was received for Status.INVALID_MSG_CODE, and 0 for Status.OPTIONAL_PARSE_ERROR.

Link copied to clipboard
open override val rawData: List<Long>

Values the device recorded alongside the error, in the order it stored them.

Link copied to clipboard

What went wrong, or null if the device sent a value the library does not know.