Part Number: SIMPLELINK-CC2640R2-SDK
Other Parts Discussed in Thread: CC2640R2F
I'm trying to implement both an 'Observer' and 'Broadcaster' profile concurrently on a CC2640R2F. Is it possible to have two profile threads (i.e. - observer.c and broadcaster.c from the two examples in the SDK) running in parallel? Can both threads call GAP_deviceInit() for their respective profiles, or should GAP_deviceInit() only be called once?
I've gone through the code in the 'Multi-Role' example, but I'm getting tripped up by all the extra code for the peripheral/central/gatt/keymenu functionality. I'm thinking it's easier to just try to combine the code from the 'simple_observer' example with code from 'simple_broadcaster' rather than strip out all the excess code from the 'multi_role' example?