# BLE HRM reading BPM

**URL:** <https://community.thunkable.com/t/ble-hrm-reading-bpm/2441754>\
**Category:** BLE / BlueTooth\
**Tags:** beginner\
**Created:** [May 29, 2023, 5:31pm UTC](https://community.thunkable.com/t/ble-hrm-reading-bpm/2441754 "2023-05-29T17:31:00Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayunsolutions](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@ayunsolutions](https://community.thunkable.com/u/ayunsolutions)\
**Post date:** [May 29, 2023, 5:31pm UTC](https://community.thunkable.com/t/ble-hrm-reading-bpm/2441754/1 "2023-05-29T17:31:00Z")

</div>

Hi,

I want to start receiving the BPM from HRM device, but I failed to do so, I am not sure what I am missing, I am able to connect to the device successfully, but somehow I cannot receive the BPM from the device it either show me an error of not proper UUID or operation is rejected.

I tried to use an app called BLE scanner in the store, and I was able successfully to receive the data using the Notify service over the motioned UUID in the app.

Please let me know how can I make this app works  
please check picture below:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/2/82ed65cd15909d840ea0ec20b14cdd0fc732f34c.png)

Regards

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [May 29, 2023, 7:36pm UTC](https://community.thunkable.com/t/ble-hrm-reading-bpm/2441754/2 "2023-05-29T19:36:34Z")

</div>

Hello @ayunsolutions!  
I am sorry for your issue.  
Is the type of data you want to receive string?

---

<div class="post-metadata">

**Author:** ![ayunsolutions](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@ayunsolutions](https://community.thunkable.com/u/ayunsolutions)\
**Post date:** [May 30, 2023, 3:07am UTC](https://community.thunkable.com/t/ble-hrm-reading-bpm/2441754/3 "2023-05-30T03:07:07Z")

</div>

Yes

---

<div class="post-metadata">

**Author:** ![ayunsolutions](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@ayunsolutions](https://community.thunkable.com/u/ayunsolutions)\
**Post date:** [May 30, 2023, 4:04am UTC](https://community.thunkable.com/t/ble-hrm-reading-bpm/2441754/4 "2023-05-30T04:04:57Z")

</div>

is Notify method is supported by thunkable? @ioannis

---

<div class="post-metadata">

**Author:** ![ayunsolutions](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@ayunsolutions](https://community.thunkable.com/u/ayunsolutions)\
**Post date:** [May 30, 2023, 4:40am UTC](https://community.thunkable.com/t/ble-hrm-reading-bpm/2441754/5 "2023-05-30T04:40:52Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/1/b1779babeb942f0e8edbfbd0acd48f36926eacb4.png)  
I have did this to try several UUIDs, and I came to know that when the command is “READ” command I can get a data,  
But when it is “NOTIFY” UUID, I receive “operation was rejected”  
please check the pictures below as an example  
 ![WhatsApp Image 2023-05-30 at 8.38.15 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/0/6071d7095aed1a7b3f8ae7fd6f772129fc073bd2.jpeg)  
 ![WhatsApp Image 2023-05-30 at 8.38.14 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/2/d24546326ce5edd4f02968d5dc9a53524de89634.jpeg)

Please let me know how to do the notify,  
Thanks

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [May 30, 2023, 8:33pm UTC](https://community.thunkable.com/t/ble-hrm-reading-bpm/2441754/6 "2023-05-30T20:33:25Z")

</div>

Hello @ayunsolutions!  
We can understand that it is frustrating and appreciate you taking the time to investigate and provide more information.

At the moment, Notify method is not supported, but this is a good suggestion! I’ll pass it on to the team.

Is it possible for you to update the firmware to use READ instead of the NOTIFY method? Another user had the same issue and was able to resolve it using this method. For more information, please click here.: [iOS Bluetooth App doesn’t receive any data - Questions about Thunkable / BLE / BlueTooth - Community](https://community.thunkable.com/t/ios-bluetooth-app-doesnt-receives-any-data/2419863)

---

<div class="post-metadata">

**Author:** ![thunkable28](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@thunkable28](https://community.thunkable.com/u/thunkable28)\
**Post date:** [June 23, 2023, 4:46pm UTC](https://community.thunkable.com/t/ble-hrm-reading-bpm/2441754/7 "2023-06-23T16:46:07Z")

</div>

Yes, @ayunsolutions, I managed to get it working with what @ioannis has mentioned above.

For all the BLE Characteristics packets that you want Thunkable App to receive properly from the Peripheral device, on the firmware side of that device use “READ”.

Here is an Arduino sample code

```auto
BleCharacteristic deviceHealthCharacteristic("deviceHealth", BleCharacteristicProperty::READ, deviceHealthUuid, serviceUuid);

```

Incase you want to send commands or data to the Peripheral device from Thunkable App, use “WRITE”

```auto
// BleCharacteristics for receiving commands
BleCharacteristic rxCharacteristic("rxCmd", BleCharacteristicProperty::WRITE, rxUuid, serviceUuid, onDataReceived, NULL);

```

Hope this helps as I always like to emphasize/assist by providing code/block snippets to the issues which is easier for the community member to understand.

Cheers

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [June 27, 2023, 7:52pm UTC](https://community.thunkable.com/t/ble-hrm-reading-bpm/2441754/8 "2023-06-27T19:52:51Z")

</div>

Hello @thunkable28!  
I am so excited that you solved the issue! 🎉  
Thank you so much for sharing the code. I am sure that all members of our community will appreciate it.

---

<div class="post-metadata">

**Author:** ![smmurarit48](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@smmurarit48](https://community.thunkable.com/u/smmurarit48)\
**Post date:** [October 5, 2023, 7:22am UTC](https://community.thunkable.com/t/ble-hrm-reading-bpm/2441754/9 "2023-10-05T07:22:08Z")

</div>

Hello Greetings  
I am trying to make an app for health monitoring system. Stuck up with BLE data string receiving and displaying on screen. Want a particular picture to show up after receiving a number say 63.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/5/b55ce77db9a1fbfa718b523c261d772f029cbaf3.png)

Am I missing some thing. Can some one help me please.  
Thanks

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [October 5, 2023, 9:47am UTC](https://community.thunkable.com/t/ble-hrm-reading-bpm/2441754/10 "2023-10-05T09:47:09Z")

</div>

Hello @smmurarit48  
Maybe your device is using the Notify service.  
At the moment, Notify method is not supported.

Is it possible for you to update the firmware to use READ instead of the NOTIFY method?  
Another user had the same issue and was able to resolve it using this method. For more information, please click here: [iOS Bluetooth App doesn’t receives any data - Questions about Thunkable / BLE / BlueTooth - Community](https://community.thunkable.com/t/ios-bluetooth-app-doesnt-receives-any-data/2419863)

---

<div class="post-metadata">

**Author:** ![smmurarit48](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@smmurarit48](https://community.thunkable.com/u/smmurarit48)\
**Post date:** [October 6, 2023, 7:57am UTC](https://community.thunkable.com/t/ble-hrm-reading-bpm/2441754/11 "2023-10-06T07:57:25Z")

</div>

Hello @ioannis  
Thank you for the reply. In fact the string data is being received and displayed also however the conditional statement to do some thing like making a picture live is not being performed.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/0/f08a083bcf873ab6f91ba970e2244de6b96c7ad7.png)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [October 6, 2023, 10:19am UTC](https://community.thunkable.com/t/ble-hrm-reading-bpm/2441754/12 "2023-10-06T10:19:52Z")

</div>

Hello @smmurarit48  
Thank you for sharing more information.  
Does the label show “63”?  
If so, try using the “label’s text” block in the condition

---

<div class="post-metadata">

**Author:** ![smmurarit48](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@smmurarit48](https://community.thunkable.com/u/smmurarit48)\
**Post date:** [October 6, 2023, 3:18pm UTC](https://community.thunkable.com/t/ble-hrm-reading-bpm/2441754/13 "2023-10-06T15:18:03Z")

</div>

Thanks @ioannis  
I have solved it by using using number block but remains stuck even if the data string number changes. How to refresh the whole thing without disconnecting the BLE. Can you help please.  
Thanks

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:33pm UTC](https://community.thunkable.com/t/ble-hrm-reading-bpm/2441754/14 "2024-11-08T13:33:53Z")

</div>


