Error

data class Error(val message: String) : Command.Response

Be warned: the message must not be longer than 100 characters. Any longer message will be cut off to fit into a BLE command

Constructors

Link copied to clipboard
constructor(message: String)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun serialize(): ByteArray

Method to serialize the given command into a ByteArray. The serialization logic needs to be in sync with the de-serialization logic in the parseCommand method.

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