This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Relay Defination and Question

Hey, Just had a quick question... I was doing the Relay example and I don't totally understand what a "relay" is. Can you explain what the purpose and usage of relay is for?

On the same note, if my prediction is correct about what a relay is, is it possible to make a blinky example with a relay where the peripheral blinky is on one side and the relay would help extend the bluetooth the connection (recieve the command from the peripheral and send to the central blinky). image description

Something like this image

  • in doing so, getting the relay to be an extender.... and having peripheral connect directly to central, i would have to change the FW. Do you think I would have to change the main c or would I have to enter to the GATT server

  • Oh, this sounds confusing. First Peripheral never connects to Central, it's the other way around;) Yes, Peripheral might trigger Central by specific advertising but it's always on Central side what scanning parameters and decision logic it has implemented. To the rest of your question: hard to imagine what exact changes and in what file you need (always talking about source code on the forum is kind of confusing as source code is hard to talk about, you need to see it;) but if you are not OK with the example as is (meaning it doesn't do what you want) then surely you need to modify it;)

Related