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

How to club ble_uart_example to ble_hid_mouse

Hi All,

I want to club both application into single without affecting functionality of each.

basically i want to make ble_hid_mouse example to be pair with my phone and ble_uart_example to pair with my app.

so how to do this?. can any one suggest with good document.

Parents
  • Hi

    Thank you for the clarification.

    I think it is a matter of adding the ble_nus service to the ble_app_hid example. Then when you connect to the device, you should see both the uart service and the hid service. A tutorial is available here that shows how to add services in your code.

    In the ble_app_uart example, you will find call to services_init in the main function. In that function you will see how the ble_nus service is initialized and added.

Reply
  • Hi

    Thank you for the clarification.

    I think it is a matter of adding the ble_nus service to the ble_app_hid example. Then when you connect to the device, you should see both the uart service and the hid service. A tutorial is available here that shows how to add services in your code.

    In the ble_app_uart example, you will find call to services_init in the main function. In that function you will see how the ble_nus service is initialized and added.

Children
No Data