Class BluetoothLeAdvertiseData
Definition
- Assembly:
- Tizen.Network.Bluetooth.dll
Bluetooth LE advertise data. Handles the data advertising.
public class BluetoothLeAdvertiseData : IDisposable
- Inheritance
-
objectBluetoothLeAdvertiseData
Constructors
View SourceBluetoothLeAdvertiseData()
The default constructor initializes an object of the BluetoothLeAdvertiseData.
Declaration
public BluetoothLeAdvertiseData()
Properties
View SourceAdvertisingConnectable
The advertising connectable type.
Declaration
public bool AdvertisingConnectable { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
The Bluetooth must be enabled.
AdvertisingMode
The advertising mode to control the advertising power and latency.
Declaration
public BluetoothLeAdvertisingMode AdvertisingMode { get; set; }
Property Value
Type | Description |
---|---|
BluetoothLeAdvertisingMode |
Remarks
The Bluetooth must be enabled.
Appearance
Sets the external appearance of this device to the advertise or the scan response data. Please refer to the adopted Bluetooth specification for the appearance.
Declaration
public int Appearance { get; set; }
Property Value
Type | Description |
---|---|
int |
Remarks
The Bluetooth must be enabled.
IncludeDeviceName
Sets whether the device name has to be included in the advertise or the scan response data. The maximum advertised or responded data size is 31 bytes including the data type and the system wide data.
Declaration
public bool IncludeDeviceName { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
The Bluetooth must be enabled.
IncludeTxPowerLevel
Sets whether the transmission power level should be included in the advertise or the scan response data. The maximum advertised or responded data size is 31 bytes including the data type and the system wide data.
Declaration
public bool IncludeTxPowerLevel { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
The Bluetooth must be enabled.
PacketType
The type of the packet.
Declaration
public BluetoothLePacketType PacketType { get; set; }
Property Value
Type | Description |
---|---|
BluetoothLePacketType |
Methods
View SourceAddAdvertisingManufacturerData(BluetoothLePacketType, ManufacturerData)
Adds the manufacturer specific data to the advertise or the scan response data. Please refer to the adopted Bluetooth specification for the the appearance.
Declaration
public void AddAdvertisingManufacturerData(BluetoothLePacketType packetType, ManufacturerData manufacturerData)
Parameters
Type | Name | Description |
---|---|---|
BluetoothLePacketType | packetType | The packet type. |
ManufacturerData | manufacturerData | The manufacturer specific data. |
Remarks
The Bluetooth must be enabled.
AddAdvertisingServiceData(BluetoothLePacketType, BluetoothServiceData)
Adds a service data to the advertise or the scan response data. The maximum advertised or responded data size is 31 bytes including data type and system wide data.
Declaration
public void AddAdvertisingServiceData(BluetoothLePacketType packetType, BluetoothServiceData data)
Parameters
Type | Name | Description |
---|---|---|
BluetoothLePacketType | packetType | The packet type. |
BluetoothServiceData | data | The service data to be added to advertising. |
Remarks
The Bluetooth must be enabled.
AddAdvertisingServiceSolicitationUuid(BluetoothLePacketType, string)
Adds a service solicitation UUID to advertise or scan the response data. The maximum advertised or responded data size is 31 bytes including the data type and the system wide data.
Declaration
public void AddAdvertisingServiceSolicitationUuid(BluetoothLePacketType packetType, string serviceSolicitationUuid)
Parameters
Type | Name | Description |
---|---|---|
BluetoothLePacketType | packetType | The packet type. |
string | serviceSolicitationUuid | The service solicitation UUID to add to advertise data. |
Remarks
The Bluetooth must be enabled.
AddAdvertisingServiceUuid(BluetoothLePacketType, string)
Adds a service UUID to the advertise or the scan response data. The maximum advertised or responded data size is 31 bytes including the data type and the system wide data.
Declaration
public void AddAdvertisingServiceUuid(BluetoothLePacketType packetType, string serviceUuid)
Parameters
Type | Name | Description |
---|---|---|
BluetoothLePacketType | packetType | The packet type. |
string | serviceUuid | The service UUID to add to advertise data. |
Remarks
The Bluetooth must be enabled.
Dispose()
Dispose
Declaration
public void Dispose()
~BluetoothLeAdvertiseData()
BluetoothLeAdvertiseData destructor.
Declaration
protected ~BluetoothLeAdvertiseData()