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

How to connect one central to different peripheral

Hello,

I want to achieve bidirectional data communication between one central and two peripherals.  Any my central device should be able to do bi-directional communication with these two peripherals independently. My central and peripheral devices are NRF52832 based boards.

I have explored ble_app_uart_c example and also ble_app_multilink_central example. But first how to connect central to peripheral?. Where exactly I have to make changes in the example code to achieve my requirement? Please help me.

Parents
  • Hi Jahan, 

    I would suggest to study the ble_app_multilink_central example to see how it works before you start integrate it with uart service. If you have a look at the scan_init() function, you can see how the scan filter is setup (to look for matching advertising name Nordic_Blinky)  and how the init_scan.connect_if_match is set to true, to enable automatically connect when matched the advertising name. 

Reply
  • Hi Jahan, 

    I would suggest to study the ble_app_multilink_central example to see how it works before you start integrate it with uart service. If you have a look at the scan_init() function, you can see how the scan filter is setup (to look for matching advertising name Nordic_Blinky)  and how the init_scan.connect_if_match is set to true, to enable automatically connect when matched the advertising name. 

Children
No Data
Related