Hi,
I am developing firmware based on nRF51822 SDK for s110. I would like to modify one or two bytes at Manufacturer Specific Data area in advertising data packet. But I have a problem. What I am trying is as follows. Please give me a hint to solve this problem.
[What I want to do is ...]
- modify one or two bytes at Manufacturer Specific Data except length and data type before calling ble_advdata_set() in advertising_init.
- advertising_start
- power management
- advertise stop
(repeat 1-4)
main() { .... ble_stack_init();
for(;;)
{
advertising_init();
advertising_start();
power_manage();
err_code = sd_ble_gap_adv_stop();
APP_ERROR_CHECK(err_code);
}
}
At first, I called nrf_delay_ms(1000) instead of power_manage() .It worked collectly. But if I replaced it with power_manage(), it doesn't work.
Thank you in advance.