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
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
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
What do you mean you 'can't achieve advertising without a scan response'? You want a scan response, you don't want one? You don't want the central to send you a scan request at all and it is even though you don't have any data to send it? What are you asking here?
Most advertising modes you'd commonly use allow, or even require, the central to send a scan request even if that returns an empty response, is that what you're trying to stop?