ProvisioningDataUnitStart
public struct ProvisioningDataUnitStart : ProvisioningDataUnit
Provisioning Data Unit Start
This Provisioner sends this PDU to deliver the public key to be used in the ECDH calculations
-
Provisioning Protocol Data Unit Type
Declaration
Swift
private(set) public var unitType: ProvisioningDataUnitType { get }
-
Provisioning Algorithm
See moreDeclaration
-
Public Key Type
See moreDeclaration
Swift
public enum PublicKeyType : UInt8
extension ProvisioningDataUnitStart.PublicKeyType: Encodable
-
Algorithm
The algorithm used for provisioning
Declaration
Swift
private(set) public var algorithm: Algorithm { get }
-
Public Key
Public Key used
Declaration
Swift
private(set) public var publicKey: PublicKeyType { get }
-
Authentication
Declaration
Swift
private(set) public var authentiction: ProvisioningAuthentication { get }
-
Create Provisioning Data Unit
Declaration
Swift
public init(algorithm: Algorithm, publicKey: PublicKeyType, authentiction: ProvisioningAuthentication)
Parameters
algorithm
Algorithm
publicKey
Public Key
authentiction
ProvisioningAuthentication
-
Encodes Provisioning Protocol Data Unit into Data
Declaration
Swift
public func encode() -> Result<Data, BluetoothEncodeError>
Return Value
Encoded Data Result