This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2540 heartrate Notifications



Hi all,

Im currently using the heartrate sample projects notification function on Btool by writing 01:00 to handle 0x0013, i was wondering how can i change the rate of notification and sampling thank you.

Husain

  • Hi Husain,

    I'm not familiar with handle 0x0013 offhand, but the logic applies to any notification characteristic. For example, in heartrateservice.c,

    // send heart rate measurement notification
    heartRateMeasNotify();

    Is sent by the heartRatePeriodicTask. So, you would just increase the rate of the periodic task (timer). However, you should be aware of the sampling/reporting requirements if you are intending to be compliant to the Heart Rate Service adopted specification.

    Best wishes
  • You can change "#define DEFAULT_HEARTRATE_PERIOD 2000" in heartrate.c, in which 2000 means 2000 mill-seconds.