Class BluetoothLeDevice

Definition

Namespace:
Tizen.Network.Bluetooth
Assembly:
Tizen.Network.Bluetooth.dll
API Level:
3

This is the BluetoothLeDevice class. It handles the LE device operations like getting data from the scan result.

C#
Copy
public class BluetoothLeDevice : object
Inheritance
BluetoothLeDevice

Properties

View Source

AddressType

The type of the address.

Declaration
C#
Copy
public BluetoothLeDeviceAddressType AddressType { get; }
Property Value
Type Description
BluetoothLeDeviceAddressType
API Level: 3
View Source

AdvertsingDataInformation

The advertsing data information.

Declaration
C#
Copy
public byte[] AdvertsingDataInformation { get; }
Property Value
Type Description
Byte[]
API Level: 3
View Source

Appearance

Gets the manufacturer data from the scan result.

Declaration
C#
Copy
public int Appearance { get; }
Property Value
Type Description
Int32

Gets the appearance value.

Remarks

The Bluetooth must be enabled.

API Level: 3
View Source

DeviceName

Gets the device name from the LE scan result.

Declaration
C#
Copy
public string DeviceName { get; }
Property Value
Type Description
String

Gets the device name.

Remarks

The Bluetooth must be enabled.

API Level: 3
View Source

ManufacturerData

Gets the manufacturer data from the scan result.

Declaration
C#
Copy
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.

API Level: 3
View Source

PacketType

The type of the packet.

Declaration
C#
Copy
public BluetoothLePacketType PacketType { get; set; }
Property Value
Type Description
BluetoothLePacketType
API Level: 3
View Source

RemoteAddress

The remote address.

Declaration
C#
Copy
public string RemoteAddress { get; }
Property Value
Type Description
String
API Level: 3
View Source

Rssi

The rssi value.

Declaration
C#
Copy
public int Rssi { get; }
Property Value
Type Description
Int32
API Level: 3
View Source

ScanDataInformation

The scan data information.

Declaration
C#
Copy
public byte[] ScanDataInformation { get; }
Property Value
Type Description
Byte[]
API Level: 3
View Source

ServiceSolictationUuid

Gets the service solicitation UUID list from the scan result.

Declaration
C#
Copy
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.

API Level: 3
View Source

ServiceUuid

Gets the service UUIDs list from the LE scan result.

Declaration
C#
Copy
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.

API Level: 3
View Source

TxPowerLevel

Gets the transmission power level from the LE scan result.

Declaration
C#
Copy
public int TxPowerLevel { get; }
Property Value
Type Description
Int32

Gets the transmission power level in dB.

Remarks

The Bluetooth must be enabled.

API Level: 3

Methods

View Source

GattConnect(Boolean)

Creates a GATT connection with the remote device.

Declaration
C#
Copy
public BluetoothGattClient GattConnect(bool autoConnect)
Parameters
Type Name Description
Boolean autoConnect

The auto connect flag.

Returns
Type Description
BluetoothGattClient

client instance

Remarks

The Bluetooth must be enabled.

API Level: 3
View Source

GattDisconnect()

Disconnects a GATT connection with the remote device.

Declaration
C#
Copy
public void GattDisconnect()
Remarks

The Bluetooth must be enabled.

API Level: 3
View Source

GetAppearance(BluetoothLePacketType)

Gets the manufacturer data from the scan result.

Declaration
C#
Copy
public int GetAppearance(BluetoothLePacketType packetType)
Parameters
Type Name Description
BluetoothLePacketType packetType

The enumeration for BLE packet type.

Returns
Type Description
Int32

Gets the appearance value.

Remarks

The Bluetooth must be enabled.

API Level: 6
Feature: http://tizen.org/feature/network.bluetooth.le
View Source

GetDeviceName(BluetoothLePacketType)

Gets the device name from the LE scan result.

Declaration
C#
Copy
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.

API Level: 6
Feature: http://tizen.org/feature/network.bluetooth.le
View Source

GetManufacturerData(BluetoothLePacketType)

Gets the manufacturer data from the scan result.

Declaration
C#
Copy
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.

API Level: 6
Feature: http://tizen.org/feature/network.bluetooth.le
View Source

GetServiceDataList()

Gets the service data list from the scan result.

Declaration
C#
Copy
public IEnumerable<BluetoothLeServiceData> GetServiceDataList()
Returns
Type Description
IEnumerable<BluetoothLeServiceData>

Returns the service data list.

Remarks

The Bluetooth must be enabled.

API Level: 3
View Source

GetServiceDataList(BluetoothLePacketType)

Gets the service data list from the scan result.

Declaration
C#
Copy
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.

API Level: 6
Feature: http://tizen.org/feature/network.bluetooth.le
View Source

GetServiceSolicitationUuid(BluetoothLePacketType)

Gets the service solicitation UUID list from the scan result.

Declaration
C#
Copy
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.

API Level: 6
Feature: http://tizen.org/feature/network.bluetooth.le
View Source

GetServiceUuid(BluetoothLePacketType)

Gets the service UUIDs list from the LE scan result.

Declaration
C#
Copy
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.

API Level: 6
Feature: http://tizen.org/feature/network.bluetooth.le
View Source

GetTxPowerLevel(BluetoothLePacketType)

Gets the transmission power level from the LE scan result.

Declaration
C#
Copy
public int GetTxPowerLevel(BluetoothLePacketType packetType)
Parameters
Type Name Description
BluetoothLePacketType packetType

The enumeration for BLE packet type.

Returns
Type Description
Int32

Gets the transmission power level in dB.

Remarks

The Bluetooth must be enabled.

API Level: 6
Feature: http://tizen.org/feature/network.bluetooth.le

Events

View Source

GattConnectionStateChanged

This event is called when the GATT client connects/disconnects with the server.

Declaration
C#
Copy
public event EventHandler<GattConnectionStateChangedEventArgs> GattConnectionStateChanged
Event Type
Type Description
EventHandler<GattConnectionStateChangedEventArgs>
API Level: 3

Extension Methods