Problem on adding 'Health Thermometer' service to existing 'Heart Rate Sensor' profile

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
TeCh_3034126
Level 3
Level 3
First like received First like given

Hi,

I am using CYBLE-014008-EVAL for my development.

I have developed my project based on the 'BLE_Heart_Rate_Sensor' code example.

I want to add the 'Health Thermometer' service to the existing 'Heart Rate Sensor' profile by just adding the service (BLE module -> Profiles -> Add Service).

Then, I add several lines of code to the main() as below:

     main()

     {

          ...

          /* Register service specific callback function */

          CyBle_HtsRegisterAttrCallback(HtsCallBack);

          ...

          while(1)

          {

               ...

               /* Send temperature to client */

               apiResult = CyBle_HtssSendIndication(cyBle_connHandle, CYBLE_HTS_TEMP_MEASURE, sizeof(temp_data), temp_data);

               ...

          }

     }

However, after I established the BT connection with my android mobile which was running CySmart app, I did not find the 'Health Thermometer' service on the CySmart app.

In addition, when I tapped the 'GATT DB' icon, I did not find the 'Health Thermometer' service there.

Are there I missed? / Did I make any mistakes?

Please help.

Thanks!

Terry

0 Likes
1 Solution

Hi Hima,

Thank you for your quick response.

I solved the problem after I cleaned all previous built stuffs and re-built the project.

Thanks,

Terry

View solution in original post

2 Replies
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Hello,

Can you please mention the following details

1)The phone which you are using?

2)The android version

3)The CySmart version

4)Please test in CySmart PC App and see if you face similar issue.

5)Attach the project

Thanks,

Hima

0 Likes

Hi Hima,

Thank you for your quick response.

I solved the problem after I cleaned all previous built stuffs and re-built the project.

Thanks,

Terry