Tool/software: TI-RTOS
Hello Guys,
I am trying to implement a application where the system goes from non connectable mode to connectable mode on a button press. to change these i will have to change the advertising parameters, since I m using BLE 4.2, I will have to stop the advertisement and chnage the parameters and then go online again. So when I am doing this, in the function
GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8_t), &advertEnabled);
here advertEnabled is FALSE, and the system goes to an infinite loop in this function which inturn calls up GAP_EndDiscoverable, How can I avoid these. Are there any other ways to get around this particular type of application?
Also, I am able to turn on the advertisement after the button press but not able to disable it.
Thank you.
Harsha