my ble can send data when the data send function called inside main.c , But it is not sending data other than in main.c like other source files.. and getting error invalid attribute handle... please help me
my ble can send data when the data send function called inside main.c , But it is not sending data other than in main.c like other source files.. and getting error invalid attribute handle... please help me
May be you have connection handle parameter defined in main.c as static, same name defined in other files as static so in reality variables are different. Check name you use in sd_ble_gatts_hvx() call and search in your project for all definitions.
What example are you using?