BLE : How do I trigger the notifications and indications ? How do I get the data sent by the notify or indicate request and reply to the server in case of an indicate ?

Hello,

 

I'm a beginner and I'm facing an issue: I'm creating an app to communicate in BLE with a server. It's inspired from the NordicThingy project.

 

I've found a way to Write in the server using the method requestWrite so I can send data to the server with my app.

 

This time I want to receive data sent by my server using "NOTIFY Request" or a "INDICATE Request."

However, I don't know how to trigger the notifications or indications and get the data sent by the server via a "NOTIFY Request" or a "INDICATE Request".

 - Is there a method to get the data sent by the server via a "NOTIFY Request" or a "INDICATE Request"?

- In case I'm using Indicate, How do I reply to the server in case of an indicate

 

Thank you in advance for your precious collaboration.

 

Cordially.