1 of 1 people found this helpful
Please note that BLE stack and FreeRTOS are independent.. There would be no difference in the basic APIs.
The PSoC BLE stack is designed in such a way that the BLE events are triggered by BLE APIs and the corresponding affects of the APIs are handled through switch statements called events. Only things you have to do are:
1. Initialize the BLE component.
2. Process the BLE events by calling the API CyBLE_ProcessEvents() atleast once in each connection interval.
You can refer the attached PSoC 4 BLE projects for understanding the flow. For your present application you have to select the I/O as Display at your device side and select Authentication with Pairing option.
You can also look at the following code example present in the web which implements the Multi-master single slave functionality in PSoC 6 BLE which uses FreeRTOS.
You can locate the full API documentation of BLE in PSoC Creator section Help --> Documentation --> Peripheral Driver Library --> Middleware and software API reference --> BLE Middleware Library.
I am attaching the BLE spec 4.2 and 5.0 too.
Please update for any queries.
Thanks and regards
Thank you! It helped a lot, I also found this example: https://github.com/cypresssemiconductorco/PSoC-6-MCU-BLE-Connectivity-Designs/blob/master/CE217645_BLE_Weight_Scale/CE217645_BLE_Weight_Scale.cydsn/host_main.c