# Receive Bluetooth Data every second

**URL:** <https://community.thunkable.com/t/receive-bluetooth-data-every-second/158812>\
**Category:** Questions about Thunkable X\
**Tags:** bluetooth\
**Created:** [July 28, 2019, 2:38am UTC](https://community.thunkable.com/t/receive-bluetooth-data-every-second/158812 "2019-07-28T02:38:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![myusername](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@myusername](https://community.thunkable.com/u/myusername)\
**Post date:** [July 28, 2019, 2:38am UTC](https://community.thunkable.com/t/receive-bluetooth-data-every-second/158812/1 "2019-07-28T02:38:18Z")

</div>

Hi all, I am trying to build my first Bluetooth (BLE) app. I think it’s a great feature, thank you for adding it.

I have got my app scanning, connecting and receiving data from an ESP32 device.

Data is currently received after button click. Is it possible to receive this data every second (or at least every few seconds) after the button is pushed once?

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [July 28, 2019, 4:32am UTC](https://community.thunkable.com/t/receive-bluetooth-data-every-second/158812/2 "2019-07-28T04:32:05Z")

</div>

How did you get it the first time?  
By having the process called by an event (linked with a button press) right?

Now, you put that same data reception logic in a block that is called by a timer firing at regular interval.  
You just need to have the button press start the timer.

---

<div class="post-metadata">

**Author:** ![kartik\_old](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik_old/32/28305_2.png) [@kartik\_old](https://community.thunkable.com/u/kartik_old)\
**Post date:** [July 28, 2019, 7:18am UTC](https://community.thunkable.com/t/receive-bluetooth-data-every-second/158812/3 "2019-07-28T07:18:12Z")

</div>

> [@CBVG](#):
>
> You just need to have the button press start the timer.

Or u msy use “ **screen opens** ” block if u want it automatically 😊  
Make sure that u set the “loops” property of timer to ON 😉

Thanks!

---

<div class="post-metadata">

**Author:** ![myusername](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@myusername](https://community.thunkable.com/u/myusername)\
**Post date:** [July 28, 2019, 8:10am UTC](https://community.thunkable.com/t/receive-bluetooth-data-every-second/158812/4 "2019-07-28T08:10:19Z")

</div>

I’d like it to be off automatically, until the button is clicked.

This is what I’ve come up with but still only receiving data once. Any tips?

![img-0](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/0/00ab26cd7ec07f2af15d9240240e144aa3592ada.png)

---

<div class="post-metadata">

**Author:** ![myusername](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@myusername](https://community.thunkable.com/u/myusername)\
**Post date:** [July 28, 2019, 11:16am UTC](https://community.thunkable.com/t/receive-bluetooth-data-every-second/158812/5 "2019-07-28T11:16:28Z")

</div>

Figured it out, I just needed to set Timer1 Loops to true

---

<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, 12:12pm UTC](https://community.thunkable.com/t/receive-bluetooth-data-every-second/158812/6 "2024-11-08T12:12:06Z")

</div>


