Payload

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 to 0x3F GeneralErrors General errors.
    0x40 to 0x7F DerivedClusterErrors Derived cluster-specific errors.
    0x80 to 0xBF 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

  • 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 custom debugDescription property for types that conform to CustomDebugStringConvertible:

    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 to s uses the Point type’s debugDescription property.

    Declaration

    Swift

    var debugDescription: String { get }