client side example of LBS using NCS

Back in SDK 17 or so there were code samples for both the client and server side of the LED button service.

What happened to the client/central example when you migrated to NCS?  Is it still available under a different name?

I'm trying to run an nrf5340 as the central (in a dual role setup).  I'd like to call LBS specific discovery functions (i.e. bt_lbs_client_handles_assign() and bt_lbs_client_subscribe_button()) but they don't appear to exist..

Searching the internet, I see examples (likely from old SDK versions) that want me to include <client_LBS.h>  but this file does not exist in the ncs\v3.2.1 directory structure anywhere.

I'm running NCS v3.2.1 in VScode 

Note: your AI assistant directed me the the NUS central example, but it calls bt_nus_handles_assign and bt_nus_subscribe_receive which are exactly the analogous calls I'd like to make for LBS

Parents
  • I did not find the LBS peripheral example helpful for making a central  implementation.

    So the answer is to write my own LBS_Client.  Since my end goal is to migrate from a (working) example of LBS client to a custom service, can I expect to be able to write an entirely custom service client based off NUS_Client or are there assumptions about how a service is organized that I must comply with?

    Also, note, this central is actually a dual role nrf5340 that serves as a peripheral to an upstream host.  Does that change which example I should work with?

  • Dan in Colorado said:
    LBS peripheral example helpful for making a central  implementation

    What I tried to say was to use the central_uart example to make a central implementation of the LBS client (or your custom service client).

    Dan in Colorado said:
    Also, note, this central is actually a dual role nrf5340 that serves as a peripheral to an upstream host.  Does that change which example I should work with?

    That shouldn't affect things much. I would start with one of the roles, such as a custom_service_client application, and then add the peripheral when you get that working.

    Best regards,

    Edvin

Reply
  • Dan in Colorado said:
    LBS peripheral example helpful for making a central  implementation

    What I tried to say was to use the central_uart example to make a central implementation of the LBS client (or your custom service client).

    Dan in Colorado said:
    Also, note, this central is actually a dual role nrf5340 that serves as a peripheral to an upstream host.  Does that change which example I should work with?

    That shouldn't affect things much. I would start with one of the roles, such as a custom_service_client application, and then add the peripheral when you get that working.

    Best regards,

    Edvin

Children
No Data
Related