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

Custom Service Problem

I am trying to modify the central / peripheral relay example to not use the HRM and RSCS services and to use my own custom service instead.

I am following this tutorial:

https://github.com/maidenone/custom_ble_service_example

This example starts with the blank template, but I assume the steps are basically the same.

I have removed the HRM and RSCS calls that set up those services for advertising. In fact I have completely removed the headers from main.c just to make sure there are not any pieces laying around.

I am at the point where I have added the custom service to advertising and the ble_cus.c file to create it. The calls are being made to set up the custom uuid and then add the gatt service. There are no errors being reported.

When I open nRF Connect on my iPhone I see my device advertising, but when I connect to it it shows the HRM and RSCS services and mine is not showing up at all. What the heck is going on?

In addition to that the advertising packet just shows <1400> as the service even though I am using the code in that tutorial and the image they show shows the full UUID should be showing in the advertising packet.

I am using SDK 15.3 like the tutorial shows.

Please help...

Related