BluetoothConnection
public class BluetoothConnection: NSObject, Connection, CBCentralManagerDelegate, CBPeripheralDelegate
The bluetooth connection
-
Undocumented
Declaration
Swift
public class BluetoothConnection: NSObject, Connection, CBCentralManagerDelegate, CBPeripheralDelegate
-
Undocumented
Declaration
Swift
public class BluetoothConnection: NSObject, Connection, CBCentralManagerDelegate, CBPeripheralDelegate
-
Undocumented
Declaration
Swift
public class BluetoothConnection: NSObject, Connection, CBCentralManagerDelegate, CBPeripheralDelegate
-
Undocumented
Declaration
Swift
public class BluetoothConnection: NSObject, Connection, CBCentralManagerDelegate, CBPeripheralDelegate
-
Undocumented
Declaration
Swift
public class BluetoothConnection: NSObject, Connection, CBCentralManagerDelegate, CBPeripheralDelegate
-
Start scanning Bluetooth devices
Declaration
Swift
public func startDiscovery()
-
Stop scanning Bluetooth devices
Declaration
Swift
public func stopDiscovery()
-
Connect to a bluetooth device
Declaration
Swift
public func connect(device: Device)
-
TODO: Connect to the nearest bluetooth device after 5 seconds
Declaration
Swift
public func connectDefaultDevice()
-
Undocumented
Declaration
Swift
public class BluetoothConnection: NSObject, Connection, CBCentralManagerDelegate, CBPeripheralDelegate
-
Undocumented
Declaration
Swift
public class BluetoothConnection: NSObject, Connection, CBCentralManagerDelegate, CBPeripheralDelegate
-
Undocumented
Declaration
Swift
public class BluetoothConnection: NSObject, Connection, CBCentralManagerDelegate, CBPeripheralDelegate
-
Undocumented
Declaration
Swift
public class BluetoothConnection: NSObject, Connection, CBCentralManagerDelegate, CBPeripheralDelegate
-
Connected says central manager
Declaration
Swift
public func centralManager(central: CBCentralManager, didConnectPeripheral peripheral: CBPeripheral)
-
TODO: Fail to connect says central manager
Declaration
Swift
public func centralManager(central: CBCentralManager, didFailToConnectPeripheral peripheral: CBPeripheral, error: NSError?)
-
Disconnected says central manager
Declaration
Swift
public func centralManager(central: CBCentralManager, didDisconnectPeripheral peripheral: CBPeripheral, error: NSError?)
-
Service discovered
Declaration
Swift
public func peripheral(peripheral: CBPeripheral, didDiscoverServices error: NSError?)
-
Undocumented
Declaration
Swift
public class BluetoothConnection: NSObject, Connection, CBCentralManagerDelegate, CBPeripheralDelegate
-
Undocumented
Declaration
Swift
public class BluetoothConnection: NSObject, Connection, CBCentralManagerDelegate, CBPeripheralDelegate