LBS client on a peripheral connecting to an LBS server on a central, example code?

Hi,

SDK 17.1 has 2 example projects (Blinky) that exchange LED and Button state data.  As it stands, the Peripheral side contains the LBS server and the Central contains the LBS client.

I am interested in pushing button state data to several peripherals from one central. Do you have example code that is similar to the Blinky projects, except the Peripheral has the LBS client and the Central has the LBS server?

 Thank you,

-Ben

Parents
  • Hi Ben,

    I am not sure I understood this correct. Why do you want the central to be the client? Also, are you trying to implement one characteristic for each peripheral?

    Best Regards,

    Priyanka

  • In this scenario, I have a controller that I wish to be a central. I want the central to have 2-3 peripherals connected to it. I wish to push the state of a button ( present on the central ) to the peripherals.

    From how the LBS example as written, its the peripheral running the server that provides the button state to the central running the LBS client.   Since I want to  push the button state the other direction ( from the central to the peripheral), does it not stand to reason that the LBS server would need to be on the Central and the LBS client be on the peripheral? 

    Thanks,

    -Ben

Reply
  • In this scenario, I have a controller that I wish to be a central. I want the central to have 2-3 peripherals connected to it. I wish to push the state of a button ( present on the central ) to the peripherals.

    From how the LBS example as written, its the peripheral running the server that provides the button state to the central running the LBS client.   Since I want to  push the button state the other direction ( from the central to the peripheral), does it not stand to reason that the LBS server would need to be on the Central and the LBS client be on the peripheral? 

    Thanks,

    -Ben

Children
Related