Important changes to questions
We’re making some changes to Mbed Questions. From 10th December 2019 this site will be archived and new questions should be asked on our new forum site. Until that date you can continue to reply to existing questions here but can’t ask new questions.
1 week, 4 days ago.
BLE_HeartRate Example with Microsecond Ticker Issue
Hi,
I am trying to run the ble heart rate example on NRF51822 with only one change i.e. using
ticker.attach_us (periodicCallback, 1000); 1ms
instead of
ticker.attach (periodicCallback, 1); 1sec
The nRF connect app connects and I can receive the hrm counter values but after a few minutes it gets disconnected and sometimes the ticker also gets stuck, whereas sometimes it keeps on ticking but the bluetooth gets disconnected.
May be 1ms ticker is causing some conflict. Any help would be appreciated. Thanks
You need to log in to post a question
Would help to know specifically which development board you are using. Would help to know specifically which code you are referring to when you say BLE_HeartRate. The only thing I see that looks like this is for mbed2. https://os.mbed.com/teams/Bluetooth-Low-Energy/code/BLE_HeartRate/
posted by Graham S. 03 Dec 2019