Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

CBPeripheralMBS class

Super class: CBPeerMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Bluetooth MBS Bluetooth Plugin 18.1 Yes No No Yes, macOS only No
Function: The CBPeripheral class represents remote peripheral devices that your app—by means of a central manager (an instance of CBCentralManager)—has discovered advertising or is currently connected to.
Peripherals are identified by universally unique identifiers (UUIDs), represented by NSUUID objects. Peripherals may contain one or more services or provide useful information about their connected signal strength.

You use this class to discover, explore, and interact with the services available on a remote peripheral that supports Bluetooth low energy. A service encapsulates the way part of the device behaves. For example, one service of a heart rate monitor may be to expose heart rate data from the monitor’s heart rate sensor. Services themselves are made up of characteristics or included services (references to other services). Characteristics provide further details about a peripheral’s service. For example, the heart rate service just described may contain one characteristic that describes the intended body location of the device’s heart rate sensor and another characteristic that transmits heart rate measurement data. Finally, characteristics contain any number of descriptors that provide more information about the characteristic’s value, such as a human-readable description and a way to format the value.
Subclass of the CBPeerMBS class.

Feedback, Comments & Corrections


Constant Value Description
kStateConnected 2 The peripheral is currently connected to the central manager.
kStateConnecting 1 The peripheral is currently in the process of connecting to the central manager.
kStateDisconnected 0 The peripheral is currently not connected to the central manager.
kStateDisconnecting 3 The peripheral is currently in the process of disconnecting from the central manager.

Super class CBPeerMBS

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some events for this class:

Some examples which use this class:

The items on this page are in the following plugins: MBS Bluetooth Plugin.

CBPeripheralManagerMBS   -   CBServiceMBS

MBS Xojo PDF Plugins