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

NRF52 As peripheral and central

Hello,
I'm working with nrf52832 and sdk15.0.0 , I made a perihperal example with one service and multi characterestics .
when i want to forward on my project and make it peripheral and central at the same time to commande another peripherals and the same time be a peripharl to a smartphone ,
so i check the example in the sdk  (BLE Heart Rate and Running speed Relay application) in the cental perihperal examples , but i find it confused.
is ther any easy example or a blog to learn more about it ?, 
BTW for the first example iI learnd it from your tutorials , but this time its very hard.
I dont know why you made this little things very hard not like others (arduino ...)

  • Hi Oukheir, 

    I'm afraid that we don't have a good tutorial for the relay application that you want to achieve except for the documentation of the hrm_relay example. 

    I would suggest you to get familiar with the central application.

    Try the central only application, not the relay. Try to get to know how it works. It should start with scan for a device and then connect to it. After you connect to the device you need to do service discovery to find the service and then enable CCCD to get the notification. It's the basics for any central application. 

    When you and peripheral and central in one application, it's simply combining the code of the central and peripheral in one place. Make sure you configure the number of central and peripheral in sdk_config.h correctly. 

    If you have a specific question, please let me know. 

  • I begin the central example the ble_app_blinky_c but when i want to read  multi characterestics, i didnt get it i just made write with LED button , and one characterestics notify , my problemee is i hava many characterestics so i want to read(notification) them how it works in the  ble_app_blinky_c example or how i can do it

Related