When you cannot discover the attributes, either you have set up the BLE profile the wrong way, or your client is doing something wrong. Are you using CySmart as GATT client?
(Note that writing to the attribute doesn't push the changes to the client automatically)
Okay.. Thank you.
As per your advice, i tried to push notifications to the client using Cyble_GattsNotification(). It worked properly. I can discover all the attributes and read the characteristics value on Cysmart windows application.
But writing to the attributes is not working . I think sending the data using notifications would be sufficient . Is it required to write the data values to the gatt database?
I will try to combine both these things and check if it works or not.
Thank you very much.
You need to write the attribute - I think the notification just tells the GATT client that a new value is available, without sending the value with it.
Thanks a lot.
I have completed writing the attribute values into the gatt database and notifying the client with the notifications.
Both these things are working satisfactorily.
Thanks for your help.
Hey, Can you also tell me what are the configurations for your Cyschematic? What was your custom profile?
I created a custom profile which contained my custom service along with the GAP and GATT service (Total 3 services). I created two custom characteristics : one for temperature and other for the humidity.
Am I supposed to use a UART in schematic to send data to cysmart from psoc board? It would be helpful if you could forward me the project.