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

Two-way relay

Hello all,

I use the relay function of the S130, and want to do a two-way data communication. I can relay the data of peripheral to central with sample code. peripheral(Slave) -> relay(Master-Slave) ->central(Master)

However, I will not be able to relay the data to the peripheral from central. central(Master) -> relay(Slave-Master) -> peripheral(Slave)

Please tell me how to relay the data to the peripheral from central

Best regers,

Parents
  • FormerMember
    0 FormerMember

    There is an example on github with a two-way relay, you can find it here. The example has not been updated to use the latest version of the softdevice, nor the lastest version of the SDK, but it should give an idea of how to make a relay in both directions. The description of how the example works is placed in the top of main.c.

Reply
  • FormerMember
    0 FormerMember

    There is an example on github with a two-way relay, you can find it here. The example has not been updated to use the latest version of the softdevice, nor the lastest version of the SDK, but it should give an idea of how to make a relay in both directions. The description of how the example works is placed in the top of main.c.

Children
No Data
Related