This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to increase receiving length of data from apk to controller BLE

Hello,

i have complied and run this  https://github.com/NordicPlayground/nRF5x-custom-ble-service-tutorial  program, so in on_write  function am copying data from  receiving buffer to array... like this

for(i=0; i<p_evt_write->len; i++)
{
dt_array[i] = p_evt_write->data[i];
}

here i am able to receive only one byte 

But  i want receive multiple bytes so what and all changes need to be done here

Please resolve this issue its little urgent..!!

thank you

Parents Reply
  • Hello Nagendra,

    N A Karmarkar said:
    Thank you for your reply

    No problem at all, I am happy to help! 

    N A Karmarkar said:
    so what changes i should do..??
    Karl Ylvisaker said:
    What is the maximum length of your characteristic's value?

    I have not really seen any relevant part of your code - namely your custom service declaration - but if you are following the tutorial you will need to change the maximum length of the characteristic to allow an input bigger than 1 byte.
     
    Best regards,
    Karl

Children
Related