Tizen Native API  5.5
Bluetooth LE Adapter for Bluetooth 5.0

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_supportedThe LE 2M PHY feature support: (true = supported , false = not supported)
Returns:
0 on success, otherwise a negative error value.
Return values:
BT_ERROR_NONESuccessful
BT_ERROR_NOT_INITIALIZEDNot initialized
BT_ERROR_INVALID_PARAMETERInvalid parameter
BT_ERROR_NOT_ENABLEDAdapter is not enabled
BT_ERROR_OPERATION_FAILEDOperation failed
BT_ERROR_NOT_SUPPORTEDNot 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_supportedThe LE CODED PHY feature support: (true = supported , false = not supported)
Returns:
0 on success, otherwise a negative error value.
Return values:
BT_ERROR_NONESuccessful
BT_ERROR_NOT_INITIALIZEDNot initialized
BT_ERROR_INVALID_PARAMETERInvalid parameter
BT_ERROR_NOT_ENABLEDAdapter is not enabled
BT_ERROR_OPERATION_FAILEDOperation failed
BT_ERROR_NOT_SUPPORTEDNot supported
Precondition:
The state of local Bluetooth must be BT_ADAPTER_ENABLED.