Enumerationpureswift.bluetooth 7.2.0Bluetooth
Declaration
DeclarationUUID.swift:8enum Declaration
enum Declaration
import Bluetooth
Pure Swift Bluetooth Definitions.
@frozen enum BluetoothUUID
Bluetooth UUID
init()
Creates a random 128-bit Bluetooth UUID.
init?(_ string: String)
init?<Data>(data: Data) where Data : DataContainer
init?(rawValue: String)
Initialize from a UUID string (in big endian representation).
init(uuid: UUID)
Initialize from a Foundation.UUID
.
var bit128: BluetoothUUID { get }
Forceably convert BluetoothUUID
to UInt128
value.
var byteSwapped: BluetoothUUID { get }
A representation of this Bluetooth UUID with the byte order swapped.
var dataLength: Int { get }
var description: String { get }
var metadata: BluetoothMetadata.BluetoothUUID? { get }
Fetch the metadata for the UUID.
var rawValue: String { get }
static func == (lhs: BluetoothUUID, rhs: BluetoothUUID) -> Bool
func append<Data>(to data: inout Data) where Data : DataContainer
enum Characteristic
enum Descriptor
enum Member
enum Service
static var characteristic: BluetoothUUID { get }
Characteristic (0x2803
)
static var include: BluetoothUUID { get }
Include (0x2802
)
static var primaryService: BluetoothUUID { get }
Primary Service (0x2800
)
static var secondaryService: BluetoothUUID { get }
Secondary Service (0x2801
)