ITCB_SDK_Central
public class ITCB_SDK_Central : ITCB_SDK, ITCB_SDK_Central_Protocol
extension ITCB_SDK_Central: CBCentralManagerDelegate
This is the Central specialization of the main SDK interface.
-
This is the list of discovered Peripheral devices.
Declaration
Swift
public var devices: [ITCB_Device_Peripheral_Protocol]
-
Declaration
Swift
func peripheralServicesUpdated(_ inPeripheral: ITCB_SDK_Device_Peripheral)
-
This is called as the state changes for the Central manager object.
Declaration
Swift
public func centralManagerDidUpdateState(_ inCentralManager: CBCentralManager)Parameters
inCentralManagerThe Central Manager instance that changed state.
-
This is called as the state changes for the Central manager object.
Declaration
Swift
public func centralManager(_ inCentralManager: CBCentralManager, didDiscover inPeripheral: CBPeripheral, advertisementData inAdvertisementData: [String : Any], rssi inRSSI: NSNumber)Parameters
inCentralManagerThe Central Manager instance that changed state.
didDiscoverThis is the Core Bluetooth Peripheral instance that was discovered.
advertisementDataThis is the adverstiement data that was sent by the discovered Peripheral.
rssiThis is the signal strength of the discovered Peripheral.
-
This is called when a peripheral was connected.
Once the device is connected, we can start discovering services.
Declaration
Swift
public func centralManager(_ inCentralManager: CBCentralManager, didConnect inPeripheral: CBPeripheral)Parameters
inCentralManagerThe Central Manager instance that changed state.
didConnectThis is the Core Bluetooth Peripheral instance that was discovered.
View on GitHub
ITCB_SDK_Central Class Reference