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

How to achieve advertising without ScanResponse

Hi,

I set advertising data as follows:

err_code = ble_advdata_set(&advdata, NULL);

But I can't achieve advertising without ScanResponse,could you give me some suggestions.

BR

Parents
  • Look at this if you haven't: devzone.nordicsemi.com/.../

    A scan response will be useful if you have more than 31 bytes of data to send. What error code is ble_advdata_set(...) returning? I beleive if it returns 0x0C then that means you are passing too much data to it in advdata. otherwise you might have a different problem. try shortening the device name for a quick check. and not sending too many uuids.

    including more of your code in advertising_init() will be helpful for answers. also note that services_init() should be called before advertising_init() in your main.c if you are using a custom (or vendor specific) service

Reply
  • Look at this if you haven't: devzone.nordicsemi.com/.../

    A scan response will be useful if you have more than 31 bytes of data to send. What error code is ble_advdata_set(...) returning? I beleive if it returns 0x0C then that means you are passing too much data to it in advdata. otherwise you might have a different problem. try shortening the device name for a quick check. and not sending too many uuids.

    including more of your code in advertising_init() will be helpful for answers. also note that services_init() should be called before advertising_init() in your main.c if you are using a custom (or vendor specific) service

Children
No Data
Related