This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to increase Advertising data size?

Hai

I'm using nrf52811 and sdk17.1.

I tried all peripheral examples But I can't set advertising data to more than 31 bytes.

If I increase the data size some parameters like names are trimmed.

I think in BLE 5.0 we can advertise more than 31 bytes of data.

how to advertise more than 31 bytes of data?

Thanks in advance

Parents
  • Hi Bosemani, 

    You would need to use extended advertising if you want to send more than 31 bytes. To do that you need to set :  init.config.ble_adv_extended_enabled = true;

    when you call ble_advertising_init().

    Please have a look at the ble_app_rscs example in SDK v17.1 we advertise with a very long name in the example :) 

  • Hai Hung Bui,

    Thank you for your Quick responce.

    I loaded ble_app_rscs example in SDK v17.1 without any changes.

    In the nRF Connect app I'm getting only the Device name "nRF Running Sp"

    but in code Device name is "nRF Running Speed and Cadence Sensor Example Application"

  • Hi Bosemani, 
    I'm sorry that I didn't notice that you were using nRF52811. If you use nRF52811 and S112, advertising extension is not supported. I would suggest to switch to nRF52832 and you can use S132 which supports it.

Reply Children
No Data
Related