1 of 1 people found this helpful
You can send strings over BLE without any problem. But to design this application you have to decide which is going to be Central, peripheral, Client and Server. I recommend you to use the Peripheral + Server combination for the device which is going to be connected to sensors.
The BLE Find me code example that you are using is a Peripheral as well as Server. As f now you are able to read the String data from the Mobile phone. Great !!
To initiate the data transfer in the reverse direction, you have to enable the notification for the string characteristic. After enabling the notification, you will get another Client Characteristic configuration descriptor. You can enable the notifications in the client characteristic configuration descriptor (CCCD).
One you have done this you can use the API Cy_BLE_GATTS_SendNotification() whenever you want to initiate the transaction from the peripheral.
Please find the attached project where the notifications are sent upon triggering the button interrupt on the peripheral side.