Tool/software: TI C/C++ Compiler
Hello Guys,
I want to change the advert data on a pin interrupt, I tried a couple of things, and didn't work out, here are some code snippets of the function that is called from pin interrupt.
1st trial:
sbpTaskHandle = Task_handle(&sbpTask);
Task_setPri(sbpTaskHandle,-1); newAdvertData_init(); Task_setPri(sbpTaskHandle,SBP_TASK_PRIORITY);
2nd trial:
uint8 advertEnabled = FALSE;
GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8_t),
&advertEnabled);
newAdvertData_init();
uint8 advertEnabled = FALSE;
GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8_t),
&advertEnabled);
In the first trail, i think the set priority is not working fine, and in the second the gap role set parameter is not working. Any suggestions on how do i get this done? I did refer to the having the multiple advertisement sets, but i think that is only supported in BLE5, but i m using BLE 4.2.
Thank you.