When i am trying to transfer data over air using sd_ble_gatts_hvx() function every time i am getting err_code 12 (NRF_ERROR_DATA_SIZE) error.
Here i can send data from my Android phone to my Peripheral succesfully, But when i try to send data from my Peripheral to android phone i am getting error.
I have checked the size of array which i am passing its only 20 bytes. This same configurations where working for SDK 6.
I am using SDK 11 and softdevice version "s130_nrf51_2.0.0-7.alpha_softdevice" Keil 5 pack version.
Does any one have any idea what am i doing wrong.