Hello All,
I have developed advertising init in 14.2 sdk (in segger ide).
(working on nrf52810 board)
I wanted to migrate same functionality to 15.3 sdk so how i can do it.
What is the modification is required in 15.3 SDK?
How to pass parameters to the "sd_ble_gap_adv_set_configure " as like 14.2 sdk?
Anyone having code for this...? please assist on this.
I have attached advt init function below please check.
This is working properly in 14.2 SDK
ret_code_t err_code;
//uint8_t adata[31];
int i;
memset(adata, 0, sizeof(adata));
adata[0] = 30;
adata[1] = BLE_GAP_AD_TYPE_COMPLETE_LOCAL_NAME;
adata[2] = 'F';//0x46;
adata[3] = 'I';//0x49;
if (advertising_flag == 1)
{
adata[4] = 'N';//0x4E;
}
else if (advertising_flag == 2)
{
adata[4] = 'n';//0x4E;
}
adata[5] = 'D';//0x44;
adata[6] = '_';//0x5F;
adata[7] = 0x30 + temp_name_id;//'0';//0x30;
adata[8] = 0x30 + tempArray;//'2';//0x31;
// adata[9] = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
// adata[10] = BLE_GAP_AD_TYPE_MANUFACTURER_SPECIFIC_DATA;
// now fill the 29 bytes with whatever you want
for(i = 9; i < sizeof(adata); i++)
adata[i] = 0;
// err_code = ble_advdata_set(&adata, NULL);
// APP_ERROR_CHECK(err_code);
err_code = sd_ble_gap_adv_data_set(adata, sizeof(adata), NULL, 0);
APP_ERROR_CHECK(err_code);
Please help me out on this issue..
Waiting for your response.
Regards,
Rohit