ProvisioningDataUnitType
public enum ProvisioningDataUnitType : UInt8
extension ProvisioningDataUnitType: Encodable
Provisioning Protocol Data Unit Types
-
Invites a device to join a mesh network
Declaration
Swift
case invite = 0x00
-
Indicates the capabilities of the device
Declaration
Swift
case capabilities = 0x01
-
Indicates the provisioning method selected by the Provisioner based on the capabilities of the device
Declaration
Swift
case start = 0x02
-
Contains the Public Key of the device or the Provisioner
Declaration
Swift
case publicKey = 0x03
-
Indicates that the user has completed inputting a value
Declaration
Swift
case inputComplete = 0x04
-
Contains the provisioning confirmation value of the device or the Provisioner
Declaration
Swift
case confirmation = 0x05
-
Contains the provisioning random value of the device or the Provisioner
Declaration
Swift
case random = 0x06
-
Includes the assigned unicast address of the primary element, a network key, NetKey Index, Flags and the IV Index
Declaration
Swift
case data = 0x07
-
Indicates that provisioning is complete
Declaration
Swift
case complete = 0x08
-
Indicates that provisioning was unsuccessful
Declaration
Swift
case failed = 0x09
-
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.