Tizen(Headed) Native API
6.5
|
Bluetooth LE API provides functions for bluetooth 5.0 functionality such as 2M Phy and Coded Phy.
Required Header
#include <bluetooth.h>
Overview
Bluetooth LE API provides functions for bluetooth 5.0 functionality such as 2M Phy and Coded Phy
Related Features
This API is related with the following features:
- http://tizen.org/feature/network.bluetooth
- http://tizen.org/feature/network.bluetooth.le
- http://tizen.org/feature/network.bluetooth.le.5_0
It is recommended to design applications with regard to features, for reliability.
You can check if the device supports the related features for this API by using System Information, and control your application's actions accordingly.
To ensure your application is only running on devices with specific features, please define the features in your manifest file using the manifest editor in the SDK.
More details on featuring your application can be found from feature element description.
Functions | |
int | bt_adapter_le_is_2m_phy_supported (bool *is_supported) |
Checks if LE 2M PHY feature is supported or not. | |
int | bt_adapter_le_is_coded_phy_supported (bool *is_supported) |
Checks if LE CODED PHY feature is supported or not. |
Function Documentation
int bt_adapter_le_is_2m_phy_supported | ( | bool * | is_supported | ) |
Checks if LE 2M PHY feature is supported or not.
- Since :
- 5.0
- Remarks:
- The LE 2M PHY feature was introduced in the BT 5.0 core specification.
- Parameters:
-
[out] is_supported The LE 2M PHY feature support: ( true
= supported ,false
= not supported)
- Returns:
- 0 on success, otherwise a negative error value.
- Return values:
-
BT_ERROR_NONE Successful BT_ERROR_NOT_INITIALIZED Not initialized BT_ERROR_INVALID_PARAMETER Invalid parameter BT_ERROR_NOT_ENABLED Adapter is not enabled BT_ERROR_OPERATION_FAILED Operation failed BT_ERROR_NOT_SUPPORTED Not supported
- Precondition:
- The state of local Bluetooth must be BT_ADAPTER_ENABLED.
int bt_adapter_le_is_coded_phy_supported | ( | bool * | is_supported | ) |
Checks if LE CODED PHY feature is supported or not.
- Since :
- 5.0
- Remarks:
- The LE CODED PHY feature was introduced in the BT 5.0 core specification.
- Parameters:
-
[out] is_supported The LE CODED PHY feature support: ( true
= supported ,false
= not supported)
- Returns:
- 0 on success, otherwise a negative error value.
- Return values:
-
BT_ERROR_NONE Successful BT_ERROR_NOT_INITIALIZED Not initialized BT_ERROR_INVALID_PARAMETER Invalid parameter BT_ERROR_NOT_ENABLED Adapter is not enabled BT_ERROR_OPERATION_FAILED Operation failed BT_ERROR_NOT_SUPPORTED Not supported
- Precondition:
- The state of local Bluetooth must be BT_ADAPTER_ENABLED.