9.4.3 Porting BLEv1.3.2 Projects to BLEv1.4.0
- Move (or Copy) the project files from C:\Texas Instruments\BLE-CC254x-1.3.2\Projects\ble\$PROJECT$ to C:\Texas Instruments\BLE-CC254x- 1.3\Projects\ble\$PROJECT$ where $PROJECT$ is your project folder.
- If you modifed any files from C:\Texas Instruments\BLE-CC254x-1.3.2\Projects\Profiles, you will need to merge your changes with the new 1.4.0 version.
- Open your project (now in the 1.4.0 folder) with IAR 8.20.
- When prompted, choose yes to convert for use with new version.
- Compile and save your project.
You should be aware of two project-specific changes:
- The functionality of the PLUS_BROADCASTER define has changed so that the peripheralBroadcaster.c and peripheralBraodcaster.h files are no longer needed. For information on how to accommodate this, see the modified simpleBLEperipheral project.
- Advertising will now begin again after a connection is dropped by default. To remove this, comment out line 1021 of peripheral.c (shown below):
VOID osal_set_event( gapRole_TaskID, START_ADVERTISING_EVT );
- All UUID's are now stored in centralized locations: gatt_uuid.h and gatt_profile_uuid.h.
Also, the following API's have changed:
- extern bStatus_t GAP_TerminateLinkReq( uint8 taskID, uint16 connectionHandle, uint8 reason );
- the third parameter "reason" has been added to allow the application to indicate the termination reason to the connected device
- The GAPBondMgr_ProcessGAPMsg( gapEventHdr_t *pMsg ) function is no longer a void-type function. It returns a uint8 that indicates TRUE if safe to deallocate the incoming GAP message and FALSE otherwise