cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

New Contributor II

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
Reply
1 Solution
New Contributor II

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
Employee

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
Reply
New Contributor II

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