Düzenle

Aracılığıyla paylaş


CBPeripheral.DiscoverCharacteristics Method

Definition

Overloads

DiscoverCharacteristics(CBService)

Discover all characteristics in a service (slow).

DiscoverCharacteristics(CBUUID[], CBService)

Discovers the list of characteristics in the specified service.

DiscoverCharacteristics(CBService)

Discover all characteristics in a service (slow).

public void DiscoverCharacteristics (CoreBluetooth.CBService forService);
member this.DiscoverCharacteristics : CoreBluetooth.CBService -> unit

Parameters

forService
CBService

Service that you want to discover all the characteristics for.

Remarks

When the characteristics are discovered, the event DiscoverCharacteristic is raised (or alternatively, if you set a Delegate, the method DiscoverCharacteristic on the delegate is invoked with the results).

Once the characterstics have been discovered, they are available on the Characteristics property.

This method is potentially slow and will return all the characteristics supported by the service. Ideally, you should use the overload that allows you to specifify an array of CBUUIDs as that will be faster.

Applies to

DiscoverCharacteristics(CBUUID[], CBService)

Discovers the list of characteristics in the specified service.

public void DiscoverCharacteristics (CoreBluetooth.CBUUID[] charactersticUUIDs, CoreBluetooth.CBService forService);
member this.DiscoverCharacteristics : CoreBluetooth.CBUUID[] * CoreBluetooth.CBService -> unit

Parameters

charactersticUUIDs
CBUUID[]

Array of CBUUIDs containing the characteristics that you are probing for.

forService
CBService

Service that you want to discover the characteristics for.

Remarks

When the characteristics are discovered, the event DiscoverCharacteristic is raised (or alternatively, if you set a Delegate, the method DiscoverCharacteristic on the delegate is invoked with the results).

Once the characterstics have been discovered, they are available on the Characteristics property.

Applies to