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

I use sdk16 on nrf52810 for development, but I want to use long broadcast package. What should I do? A short broadcast packet can only be 31 bytes

I use sdk16 on nrf52810 for development, but I want to use long broadcast packageada. What should I do?

A short broadcast packet can only be 31 bytes

thank you!

  • The maximum MTU size available for data transfer over BLE is 247 bytes, Change the Max MTU size in the sdk_config.h to 247 from 23, in the service init function set the size of your characteristic to 244 and you also would have to set the length in the hvx section also.

    Use the debugger to print the RAM size that needs to be configured and that should fix your issue. Refer the hrs service in the SDK once, you will notice all the changes that needs to be done in hrs.c

Related