struct Payload
Payload for the OperationalErrorEvent
.
-
An enumeration range or generally applicable values that indicate specific errors. The enumeration ranges for the
errorStateId
field values are:0x00
to0x3F
GeneralErrors General errors. 0x40
to0x7F
DerivedClusterErrors Derived cluster-specific errors. 0x80
to0xBF
ManufacturerError Vendor-specific errors. The generally applicable
errorStateId
values are:0x00
NoError When the device is not in an error state. 0x01
UnableToStartOrResume When the device is unable to start or resume operation. 0x02
UnableToCompleteOperation When the device is unable to complete the current operation. 0x03
CommandInvalidInState When the device cannot process the command in its current state. Declaration
Swift
let errorState: Matter.RvcOperationalStateTrait.ErrorStateStruct?
-
A textual representation of this instance, suitable for debugging.
Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the
String(reflecting:)
initializer. This initializer works with any type, and uses the customdebugDescription
property for types that conform toCustomDebugStringConvertible
:struct Point: CustomDebugStringConvertible { let x: Int, y: Int var debugDescription: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(reflecting: p) print(s) // Prints "(21, 30)"
The conversion of
p
to a string in the assignment tos
uses thePoint
type’sdebugDescription
property.Declaration
Swift
var debugDescription: String { get }