HI TI experts,
I currently did some test on CC2541 peripheral projects and I configured it as peripheralbroadcaster. I'd like to configure the advertising interval when a connection has been established. (As we know it would change to around 1.3s by default) Since the GAP API cannot take effect on the non-connetable advertising interval, I was told that I could call HCI_LE_SetAdvParamCmd() directly. I called HCI_LE_SetAdvParamCmd()and HCI_LE_SetAdvEnableCmd()in GAPRole_ProcessEvent() in peripheral.c. I wonder if it is the right place to call them, because although the HCI_LE_SetAdvEnableCmd() return 0, I cannot detect the advertisement. Do you have any clue that how I can fix this problem?
Regards,
Kai