Other Parts Discussed in Thread: CC2541, CC2650
I'm porting a CC2541 app to the CC2650 on the SimpleLink CC2650 development kit. It's been easy except for
the fact that I cannot turn off advertising once it begins. I call GAPRole_SetParameter
(GAPROLE_ADVERT_ENABLED, 1, &en) with en=0. I verify that GAP_EndDiscoverable(selfEntity) is being executed
in peripheral.c. But once on, advertising stays on. I tried the same by adding code to SimpleBLEPeripheral to
switch off advertising after 10 seconds. Same result. Advertising remains on. Is something else required?
I have noticed a behavior that may not be relevant. If I turn off advertising then connect to the device (because advertising is not really off), on disconnect advertising stops.
Thanks,
Don.