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

Implicate blinky in relay example

Hey,

I'm currently doing the relay example on the nordic info centre. I'm trying to manipulate the example so that I can transform it into a range extender.

The goal here is to get one peripheral blinky to connect to relay and the relay to connect to the central. In result will have peripheral send signal directly to central with a range extender (relay)

In the relay example I need call, set the blinky example.

infocenter.nordicsemi.com/index.jsp

I noticed in the above website is that I need to call these functions. Can someone show me how to call these functions in the relay example and make it the relay connect to a central/peripheral?

Parents
  • @Binh: Are you familiar with the single connection example ? With just one central and one peripheral ? I would suggest you to study the normal example first. And understand the way it work and how to use the function, before you start to add the relay in.

    The Relay is the combination of the client and server, with one extra function, is to forward the data it receive from the server to the client on the other side. This is done inside hrs_c_evt_handler() and rscs_c_evt_handler().

    Basically, in your case, the relay would instead of change the LED voltage level, it forward (send) the write command/notification to the other side.

Reply
  • @Binh: Are you familiar with the single connection example ? With just one central and one peripheral ? I would suggest you to study the normal example first. And understand the way it work and how to use the function, before you start to add the relay in.

    The Relay is the combination of the client and server, with one extra function, is to forward the data it receive from the server to the client on the other side. This is done inside hrs_c_evt_handler() and rscs_c_evt_handler().

    Basically, in your case, the relay would instead of change the LED voltage level, it forward (send) the write command/notification to the other side.

Children
No Data
Related