Class BluetoothLeDevice
Definition
- Assembly:
- Tizen.Network.Bluetooth.dll
This is the BluetoothLeDevice class. It handles the LE device operations like getting data from the scan result.
public class BluetoothLeDevice
- Inheritance
-
objectBluetoothLeDevice
Properties
View SourceAddressType
The type of the address.
Declaration
public BluetoothLeDeviceAddressType AddressType { get; }
Property Value
Type | Description |
---|---|
BluetoothLeDeviceAddressType |
AdvertsingDataInformation
The advertsing data information.
Declaration
public byte[] AdvertsingDataInformation { get; }
Property Value
Type | Description |
---|---|
byte[] |
Appearance
Gets the manufacturer data from the scan result.
Declaration
public int Appearance { get; }
Property Value
Type | Description |
---|---|
int | Gets the appearance value. |
Remarks
The Bluetooth must be enabled.
DeviceName
Gets the device name from the LE scan result.
Declaration
public string DeviceName { get; }
Property Value
Type | Description |
---|---|
string | Gets the device name. |
Remarks
The Bluetooth must be enabled.
ManufacturerData
Gets the manufacturer data from the scan result.
Declaration
public ManufacturerData ManufacturerData { get; }
Property Value
Type | Description |
---|---|
ManufacturerData | Gets the manufacturer data containing the manucturer data and ID information. |
Remarks
The Bluetooth must be enabled.
PacketType
The type of the packet.
Declaration
public BluetoothLePacketType PacketType { get; set; }
Property Value
Type | Description |
---|---|
BluetoothLePacketType |
RemoteAddress
The remote address.
Declaration
public string RemoteAddress { get; }
Property Value
Type | Description |
---|---|
string |
Rssi
The rssi value.
Declaration
public int Rssi { get; }
Property Value
Type | Description |
---|---|
int |
ScanDataInformation
The scan data information.
Declaration
public byte[] ScanDataInformation { get; }
Property Value
Type | Description |
---|---|
byte[] |
ServiceSolictationUuid
Gets the service solicitation UUID list from the scan result.
Declaration
public IEnumerable<string> ServiceSolictationUuid { get; }
Property Value
Type | Description |
---|---|
IEnumerable<><string> | Gets the list of the service solicitation UUIDs. |
Remarks
The Bluetooth must be enabled.
ServiceUuid
Gets the service UUIDs list from the LE scan result.
Declaration
public IEnumerable<string> ServiceUuid { get; }
Property Value
Type | Description |
---|---|
IEnumerable<><string> | Gets the list of the string service UUIDs. |
Remarks
The Bluetooth must be enabled.
TxPowerLevel
Gets the transmission power level from the LE scan result.
Declaration
public int TxPowerLevel { get; }
Property Value
Type | Description |
---|---|
int | Gets the transmission power level in dB. |
Remarks
The Bluetooth must be enabled.
Methods
View SourceGattConnect(bool)
Creates a GATT connection with the remote device.
Declaration
public BluetoothGattClient GattConnect(bool autoConnect)
Parameters
Type | Name | Description |
---|---|---|
bool | autoConnect | The auto connect flag. |
Returns
Type | Description |
---|---|
BluetoothGattClient | client instance |
Remarks
The Bluetooth must be enabled.
GattDisconnect()
Disconnects a GATT connection with the remote device.
Declaration
public void GattDisconnect()
Remarks
The Bluetooth must be enabled.
GetAppearance(BluetoothLePacketType)
Gets the manufacturer data from the scan result.
Declaration
public int GetAppearance(BluetoothLePacketType packetType)
Parameters
Type | Name | Description |
---|---|---|
BluetoothLePacketType | packetType | The enumeration for BLE packet type. |
Returns
Type | Description |
---|---|
int | Gets the appearance value. |
Remarks
The Bluetooth must be enabled.
GetDeviceName(BluetoothLePacketType)
Gets the device name from the LE scan result.
Declaration
public string GetDeviceName(BluetoothLePacketType packetType)
Parameters
Type | Name | Description |
---|---|---|
BluetoothLePacketType | packetType | The enumeration for BLE packet type. |
Returns
Type | Description |
---|---|
string | Gets the device name. |
Remarks
The Bluetooth must be enabled.
GetManufacturerData(BluetoothLePacketType)
Gets the manufacturer data from the scan result.
Declaration
public ManufacturerData GetManufacturerData(BluetoothLePacketType packetType)
Parameters
Type | Name | Description |
---|---|---|
BluetoothLePacketType | packetType | The enumeration for BLE packet type. |
Returns
Type | Description |
---|---|
ManufacturerData | Gets the manufacturer data containing the manucturer data and ID information. |
Remarks
The Bluetooth must be enabled.
GetServiceDataList()
Gets the service data list from the scan result.
Declaration
public IEnumerable<BluetoothLeServiceData> GetServiceDataList()
Returns
Type | Description |
---|---|
IEnumerable<><BluetoothLeServiceData> | Returns the service data list. |
Remarks
The Bluetooth must be enabled.
GetServiceDataList(BluetoothLePacketType)
Gets the service data list from the scan result.
Declaration
public IEnumerable<BluetoothLeServiceData> GetServiceDataList(BluetoothLePacketType packetType)
Parameters
Type | Name | Description |
---|---|---|
BluetoothLePacketType | packetType | The packet type. |
Returns
Type | Description |
---|---|
IEnumerable<><BluetoothLeServiceData> | Returns the service data list. |
Remarks
The Bluetooth must be enabled.
GetServiceSolicitationUuid(BluetoothLePacketType)
Gets the service solicitation UUID list from the scan result.
Declaration
public IEnumerable<string> GetServiceSolicitationUuid(BluetoothLePacketType packetType)
Parameters
Type | Name | Description |
---|---|---|
BluetoothLePacketType | packetType | The enumeration for BLE packet type. |
Returns
Type | Description |
---|---|
IEnumerable<><string> | Gets the list of the service solicitation UUIDs. |
Remarks
The Bluetooth must be enabled.
GetServiceUuid(BluetoothLePacketType)
Gets the service UUIDs list from the LE scan result.
Declaration
public IEnumerable<string> GetServiceUuid(BluetoothLePacketType packetType)
Parameters
Type | Name | Description |
---|---|---|
BluetoothLePacketType | packetType | The enumeration for BLE packet type. |
Returns
Type | Description |
---|---|
IEnumerable<><string> | Gets the list of the string service UUIDs. |
Remarks
The Bluetooth must be enabled.
GetTxPowerLevel(BluetoothLePacketType)
Gets the transmission power level from the LE scan result.
Declaration
public int GetTxPowerLevel(BluetoothLePacketType packetType)
Parameters
Type | Name | Description |
---|---|---|
BluetoothLePacketType | packetType | The enumeration for BLE packet type. |
Returns
Type | Description |
---|---|
int | Gets the transmission power level in dB. |
Remarks
The Bluetooth must be enabled.
Events
View SourceGattConnectionStateChanged
This event is called when the GATT client connects/disconnects with the server.
Declaration
public event EventHandler<GattConnectionStateChangedEventArgs> GattConnectionStateChanged
Event Type
Type | Description |
---|---|
EventHandler<><GattConnectionStateChangedEventArgs> |