Welcome to the Forum!!
If you are looking for adding two profiles using BLE component, this feature is not available yet.
But considering that you want to enable a set of services/characteristic at button press and another set at no button press, why don't you define all the services and characteristics under a single profile and use APIs (CyBle_GattsEnableAttribute/CyBle_GattsDisableAttribute) to disable/enable some of them at command?
Thanks for your reply,
In my application,
(1) In HID mode, it have to be recognized as a standard point device (such as mouse) in Windows & Android OS.
(2) In OTHER mode, because of the customized profile, the OS needs to install our App to make a connection with our device.
If our device use a single HID profile, when it switches to the OTHER mode and use the API to disable the HID service and enable the customer service,
Can our App successfully make a connection to the device under the non-standard HID profile?
Is it possible to add other characteristics to HID profile and in one time be as HID central client and in another time use the second characteristics as peripethial server? How to switch between those modes (central client and peripethial server)? I need to use the profiles to 1) connect keyboard and 2) to send data to client device (computer, smartphone).
Thanks for advice, Pawel