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

How to add a ble SIG service?? I know how to create and add a custom ble service, I followed the tutorial. But can't find info about SIG registered services.

I would like to add a simple ble BAS (battery service) to appear along side my custom services... but for the life of me I cannot find any information, or tutorial on how to do such things.

I have followed the custom service tutorials, and I can implement my battery service as a custom service, but it appears as an unknown service.

How do I add a non-custom service that nrf connect will recognise as Battery Service to my code?

If you could point me to an example where this is done, even if it is with another ble registered service I would appreciate the help!

Parents
  • ohhh GG it's already all done... I was trying to write it from scratch... Thanks for pointing me in the right direction, I was looking for examples of people making or using the bas service in their projects, but I only found obscure references where people were able to use the service after 1  command.
    I'm not sure if that's how you are supposed to use it, but from what im seeing i have the ble_bas.c and ble_bas.h and i can just drag them into my project.

    I am somewhat of a noob in both C and NRF so yeah excuse the stupid question, and thank you for showing me the way to the implementation.

Reply
  • ohhh GG it's already all done... I was trying to write it from scratch... Thanks for pointing me in the right direction, I was looking for examples of people making or using the bas service in their projects, but I only found obscure references where people were able to use the service after 1  command.
    I'm not sure if that's how you are supposed to use it, but from what im seeing i have the ble_bas.c and ble_bas.h and i can just drag them into my project.

    I am somewhat of a noob in both C and NRF so yeah excuse the stupid question, and thank you for showing me the way to the implementation.

Children
No Data
Related