This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

peripheral+broadcaster+observer on CC2540



Hi,

in my application I'd like to have one central device (smartphone) which establishes a connection to one peripheral.There are many of those peripherals advertising but the mobile phone only connects to one of them which serves as a transmitter. This means this one, while beeing connected to the mobile phone, has to broadcast messages to the other peripheral devices. All other peripherals, while advertising, also have to scan for broadcast messages. So I guess the peripheral devices also have to contain an observer role to scan for the broadcasts. when they receive a broadcast from the transmitter they'll stop advertising and from there on only check for broadcastmessages until the transmitter is told to stop broadcasting.

To sum it up the devices shall all start in a peripheral+observer combo role until one connects to a mobilephone and switches to peripheral+broadcaster role and the others, when receiving a broadcast message, switch to only observing.

So I wonder if it is possible to archieve this and if i shall implement peripheralBroadcaster and peripheralObserver files and how I can switch between the two of them.

I'd be thankful for any help!

Thanks

Robin