C# 클래스 BluetoothLE.Droid.Characteristic

Concrete implmentation of BluetoothLE.Core.ICharacteristic interface
상속: ICharacteristic
파일 보기 프로젝트 열기: tbrushwyler/Xamarin.BluetoothLE 1 사용 예제들

공개 메소드들

메소드 설명
Characteristic ( Android.Bluetooth.BluetoothGattCharacteristic characteristic, Android.Bluetooth.BluetoothGatt gatt, GattCallback gattCallback ) : System

Initializes a new instance of the BluetoothLE.Droid.Characteristic class.

Read ( ) : void

Read the characteristic's value

StartUpdates ( ) : void

Subscribe to the characteristic

StopUpdates ( ) : void

Unsubscribe from the characteristic

Write ( byte data ) : void

Write the specified data to the characteristic

비공개 메소드들

메소드 설명
CharacteristicValueUpdated ( object sender, CharacteristicReadEventArgs e ) : void
SetUpdateValue ( bool enable ) : void

메소드 상세

Characteristic() 공개 메소드

Initializes a new instance of the BluetoothLE.Droid.Characteristic class.
public Characteristic ( Android.Bluetooth.BluetoothGattCharacteristic characteristic, Android.Bluetooth.BluetoothGatt gatt, GattCallback gattCallback ) : System
characteristic Android.Bluetooth.BluetoothGattCharacteristic Characteristic.
gatt Android.Bluetooth.BluetoothGatt Gatt.
gattCallback GattCallback Gatt callback.
리턴 System

Read() 공개 메소드

Read the characteristic's value
public Read ( ) : void
리턴 void

StartUpdates() 공개 메소드

Subscribe to the characteristic
public StartUpdates ( ) : void
리턴 void

StopUpdates() 공개 메소드

Unsubscribe from the characteristic
public StopUpdates ( ) : void
리턴 void

Write() 공개 메소드

Write the specified data to the characteristic
public Write ( byte data ) : void
data byte Data.
리턴 void