advertising data stops updating
I have set a manufacturer specific data string in the advertising data. I use a OS_timer to call a function repeatedly to update the advertising data. using the following code:
static void mnf_tim_cb(OS_TIMER timer)
{
// hw_gpio_toggle(HW_GPIO_PORT_1, HW_GPIO_PIN_5);//devkit use 0_7 for device
mnf_flag_1++;
ble_gap_adv_stop();
if(mnf_flag_1 == 0xFF)
mnf_flag_1 = 0x04;
adv_data[10] = mnf_flag_1;
ble_gap_adv_data_set(sizeof(adv_data), adv_data, name_len + 2, scan_rsp);