cancel
Showing results for 
Search instead for 
Did you mean: 

Knowledge Base Articles

Bluetooth® LE stack library version for PSoC™ 4 and 6 MCUs with AIROC™ Bluetooth® LE – KBA233930

Chelladurai
Community Manager
Community Manager

Bluetooth® LE stack library version for PSoC™ 4 and 6 MCUs with AIROC™ Bluetooth® LE – KBA233930

Version: **

In the code, you can read the major version, minor version, patch number, and build number of the Bluetooth® LE stack library by using the API as follows:

For PSoC™ 4 CY8C4x47xx-BLxxxx MCU with AIROC™ Bluetooth® LE:

The CyBle_GetStackLibraryVersion()API function is used for reading the major version, minor version, patch number, and build number of the Bluetooth® LE stack library. See the following sample code segment:

CYBLE_STACK_LIB_VERSION_T stackVersion;
CYBLE_API_RESULT_T apiResult;

apiResult = CyBle_GetStackLibraryVersion(&stackVersion);
  
printf("BLE Stack Version: %d.%d.%d.%d\r\n", stackVersion.majorVersion, 
                                              stackVersion.minorVersion,
                                              stackVersion.patch,
                                              stackVersion.buildNumber);


For PSoC™ 6 CY8C63x7 MCU with AIROC™ Bluetooth® LE:

The Cy_BLE_GetStackLibraryVersion()API function is used for reading the major version, minor version, patch number, and build number of the Bluetooth® LE stack library. See the following sample code segment:

cy_stc_ble_stack_lib_version_t stackVersion;
cy_en_ble_api_result_t apiResult;

apiResult = Cy_BLE_GetStackLibraryVersion(&stackVersion);

printf("BLE Stack Version: %d.%d.%d.%d\r\n", stackVersion.majorVersion, 
                                             stackVersion.minorVersion,
                                             stackVersion.patch,
                                             stackVersion.buildNumber);

 

0 Likes
Version history
Revision #:
2 of 2
Last update:
‎Oct 20, 2021 10:37 PM
Updated by: