Required Instance Propertypureswift.bluetooth 7.2.0Bluetooth
destination
L2CAPSocket.swift:49var destination: BluetoothAddress { get }
var destination: BluetoothAddress { get }
s9Bluetooth15L2CAPConnectionP11destinationAA0A7AddressVvp
What are these?3SKEM
import Bluetooth
Pure Swift Bluetooth Definitions.
protocol L2CAPConnection : L2CAPSocket
@frozen struct BluetoothAddress
Bluetooth address.
associatedtype Data : DataContainer
static func lowEnergyClient(address: BluetoothAddress, destination: BluetoothAddress, isRandom: Bool) throws(Self.Error) -> Self
Creates a new socket connected to the remote address specified.
func receive(_ bufferSize: Int) throws(Self.Error) -> Self.Data
Reads from the socket.
func securityLevel() throws(Self.Error) -> SecurityLevel
Get security level
func send(_ data: Data) throws(Self.Error)
Write to the socket.
func setSecurityLevel(_ securityLevel: SecurityLevel) throws(Self.Error)
Attempts to change the socket’s security level.