Bluetooth® LE stack library version for PSoC™ 4 and 6 MCUs with AIROC™ Bluetooth® LE – KBA233930
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
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);