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

My app won't detect HeartRateService

Hi, I have written some code following an example for my nRF51-DK using a sensor and HeartRateService, but I tried to use some apps and the scan doesn't seem to see my phone. I tried it with the nRF Connect app and it sees it, and the data looks correct. Obviously the nRF Toolbox app doesn't see it too. I've seen somewhere that this could be related to the UUID, but I'm quite new and I've not been able to solve this. Could someone explain me what to do?

  • Ensure that you are advertising the Hear Rate Service in your advertisement (0x180D). If you are using the nRF connect app, you should be able to select RAW on the advertisement data, you should see a field of type 0x03, which should contain that 16-bit UUID

  • Thanks for your answer Collin. If I am to choose raw data, I see 0x020106080946562D48524D00. If I connect to the device, under the client tab I have: -Generic Access with 0x1800 -Generic Attribute with 0x1801 -Heart Rate with 0x180D Choosing the Heart Rate service, the data saw there is correct, but still I can't seem to be able to detect this service in an external app, so I reckon that the problem lies in the raw data UUID. How can I solve this problem?

    EDIT: I have solved it, thanks Collin. Just had to add what you said in your answer

Related