ProvisioningDataUnitCapabilities
public struct ProvisioningDataUnitCapabilities : ProvisioningDataUnit
Provisioning Data Unit Capabilities
The device sends this PDU to indicate its supported provisioning capabilities to a Provisioner
-
Provisioning Protocol Data Unit Type
Declaration
Swift
private(set) public var unitType: ProvisioningDataUnitType { get }
-
Algorithms
See moreDeclaration
Swift
public struct AlgorithmType : OptionSet
extension ProvisioningDataUnitCapabilities.AlgorithmType: Encodable
-
Public Key Type
See moreDeclaration
Swift
public struct PublicKeyType : OptionSet
extension ProvisioningDataUnitCapabilities.PublicKeyType: Encodable
-
Public Key Type
See moreDeclaration
Swift
public struct StaticOobType : OptionSet
extension ProvisioningDataUnitCapabilities.StaticOobType: Encodable
-
Supported Output OOB Actions
See moreDeclaration
Swift
public struct OutputActions : OptionSet
extension ProvisioningDataUnitCapabilities.OutputActions: Encodable
-
Supported Input OOB Actions
See moreDeclaration
Swift
public struct InputActions : OptionSet
extension ProvisioningDataUnitCapabilities.InputActions: Encodable
-
Number of Elements
Number of elements supported by the device
Declaration
Swift
private(set) public var elements: ProvisioningSize { get }
-
Algorithms
Supported algorithms and other capabilities
Declaration
Swift
private(set) public var algorithm: AlgorithmType { get }
-
Public Key
Supported public key types
Declaration
Swift
private(set) public var publicKey: PublicKeyType { get }
-
Static OOB Type
Supported static OOB Types
Declaration
Swift
private(set) public var staticOobTypes: StaticOobType { get }
-
Output OOB Size
Maximum size of Output OOB supported
Declaration
Swift
private(set) public var outputObbSize: ProvisioningSize { get }
-
Output OOB Action
Supported Output OOB Actions
Declaration
Swift
private(set) public var supportedOutputActions: OutputActions { get }
-
Input OOB Size
Maximum size in octets of Input OOB supported
Declaration
Swift
private(set) public var inputOobSize: ProvisioningSize { get }
-
Input OOB Action
Supported Input OOB Actions
Declaration
Swift
private(set) public var supportedInputActions: InputActions { get }
-
init(elements:
algorithm: publicKey: staticOobTypes: outputObbSize: supportedOutputActions: inputOobSize: supportedInputActions: ) Create Provisioning Data Unit
Declaration
Swift
public init(elements: ProvisioningSize, algorithm: AlgorithmType, publicKey: PublicKeyType, staticOobTypes: StaticOobType, outputObbSize: ProvisioningSize, supportedOutputActions: OutputActions, inputOobSize: ProvisioningSize, supportedInputActions: InputActions)
Parameters
elements
Number of elements supported by the device
algorithm
Supported algorithms and other capabilities
publicKey
Supported public key types
staticOobTypes
Supported static OOB Types
outputObbSize
Maximum size of Output OOB supported
supportedOutputActions
Supported Output OOB Actions
inputOobSize
Maximum size in octets of Input OOB supported
supportedInputActions
Supported Input OOB Actions
-
Encodes Provisioning Protocol Data Unit into Data
Declaration
Swift
public func encode() -> Result<Data, BluetoothEncodeError>
Return Value
Encoded Data