ErrorType

public enum ErrorType : UInt8
extension ProvisioningDataUnitFailed.ErrorType: Encodable

Provisioning Protocol Data Unit Types

  • Prohibited

    Declaration

    Swift

    case prohibited = 0x00
  • The provisioning protocol PDU is not recognized by the device

    Declaration

    Swift

    case invalidDataUnit = 0x01
  • The arguments of the protocol PDUs are outside expected values or the length of the PDU is different than expected

    Declaration

    Swift

    case invalidFormat = 0x02
  • The PDU received was not expected at this moment of the procedure

    Declaration

    Swift

    case unexpectedUnit = 0x03
  • The PDU received was not expected at this moment of the procedure

    Declaration

    Swift

    case confirmationFailed = 0x04
  • The provisioning protocol cannot be continued due to insufficient resources in the device

    Declaration

    Swift

    case outOfResources = 0x05
  • The Data block was not successfully decrypted

    Declaration

    Swift

    case decryptionFailed = 0x06
  • An unexpected error occurred that may not be recoverable

    Declaration

    Swift

    case unexpectedError = 0x07
  • The device cannot assign consecutive unicast addresses to all elements

    Declaration

    Swift

    case cannotAssignAddresses = 0x08
  • Undocumented

    Declaration

    Swift

    public var description: String { get }
  • Encodes this value into the given encoder.

    If the value fails to encode anything, encoder will encode an empty keyed container in its place.

    This function throws an error if any values are invalid for the given encoder’s format.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    The encoder to write data to.