ServerResponseError

data class ServerResponseError(val id: Int, val rawData: List<Long>, val timestamp: Long, val coApCode: RuntimeError.ServerResponseError.CoapCode?) : RuntimeError

The server answered a transmission with an error.

Constructors

Link copied to clipboard
constructor(id: Int, rawData: List<Long>, timestamp: Long, coApCode: RuntimeError.ServerResponseError.CoapCode?)

Types

Link copied to clipboard

CoAP response code the server answered with. Each name spells out its code, so CODE_4_04 is CoAP 4.04.

Properties

Link copied to clipboard

Code the server answered with, or null if the device sent a value the library does not know.

Link copied to clipboard
open override val id: Int

Id the device uses for this kind of 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

Unix timestamp of when the answer arrived.