Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

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

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

Chelladurai
Community Manager
Community Manager
Community Manager
100 sign-ins 50 questions asked 50 sign-ins

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
365 Views