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.

ITCB_SDK_Device_PeripheralDelegate Methods

CBCentralManagerDelegate Methods

  • This is called as the state changes for the Central manager object.

    Declaration

    Swift

    public func centralManagerDidUpdateState(_ inCentralManager: CBCentralManager)

    Parameters

    inCentralManager

    The 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

    inCentralManager

    The Central Manager instance that changed state.

    didDiscover

    This is the Core Bluetooth Peripheral instance that was discovered.

    advertisementData

    This is the adverstiement data that was sent by the discovered Peripheral.

    rssi

    This 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

    inCentralManager

    The Central Manager instance that changed state.

    didConnect

    This is the Core Bluetooth Peripheral instance that was discovered.