struct PayloadPayload for the OperationalErrorEvent.
-
An enumeration range or generally applicable values that indicate specific errors. The enumeration ranges for the
errorStateIdfield values are:0x00to0x3FGeneralErrors General errors. 0x40to0x7FDerivedClusterErrors Derived cluster-specific errors. 0x80to0xBFManufacturerError Vendor-specific errors. The generally applicable
errorStateIdvalues are:0x00NoError When the device is not in an error state. 0x01UnableToStartOrResume When the device is unable to start or resume operation. 0x02UnableToCompleteOperation When the device is unable to complete the current operation. 0x03CommandInvalidInState 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 customdebugDescriptionproperty 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
pto a string in the assignment tosuses thePointtype’sdebugDescriptionproperty.Declaration
Swift
var debugDescription: String { get }