I succesfully sent data to esp32 but i want to send it to client how should i do need help
If I understand you correctly,
RPC is an acronym that stands for Remote Procedure Call
You don’t “send”, you are called and you return a response. If you need the ESP32 to spontaneously send information, rpc-gatts is not the way to do it. You either advertise it and/or the interested party registers to get a notification when that content has changed, then he connects and reads it. Or poll the ESP frequent enough, but this requires being awake.
If so, you need to register your service and etc. Pretty long for a forum answer.