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
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