# Can I trigger an in app event from a ble module?

**URL:** https://community.thunkable.com/t/can-i-trigger-an-in-app-event-from-a-ble-module/1622352
**Category:** BLE / BlueTooth
**Tags:** bluetooth
**Created:** [November 18, 2021, 3:02am UTC](https://community.thunkable.com/t/can-i-trigger-an-in-app-event-from-a-ble-module/1622352 "2021-11-18T03:02:24Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![hhuman](https://avatars.discourse-cdn.com/v4/letter/h/3be4f8/32.png) [@hhuman](https://community.thunkable.com/u/hhuman)
#### Post date: [November 18, 2021, 3:02am UTC](https://community.thunkable.com/t/can-i-trigger-an-in-app-event-from-a-ble-module/1622352/1 "2021-11-18T03:02:24Z")

</div>

How might I get the app to speak when I hit the play button on a bluetooth device? If you have a look at the code, you’ll see that I have it to do so when the phone is shaken hard. Anybody have any ideas? Thank you!

[https://x.thunkable.com/projectPage/60fdb61be6a9c200112d9363](https://x.thunkable.com/projectPage/60fdb61be6a9c200112d9363)

PEace now,

Himalaya

Ps. PLease don’t be shy with the questions… ask away.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [November 18, 2021, 3:29am UTC](https://community.thunkable.com/t/can-i-trigger-an-in-app-event-from-a-ble-module/1622352/3 "2021-11-18T03:29:20Z")

</div>

Which section of the code is this in? You have pages and pages of blocks so it’s hard to know.

Can you explain the cause and effect in more detail? It’s not clear what the connection is between the bluetooth device (what kind of bluetooth device?) and the phone being shaken.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [November 18, 2021, 3:32am UTC](https://community.thunkable.com/t/can-i-trigger-an-in-app-event-from-a-ble-module/1622352/4 "2021-11-18T03:32:10Z")

</div>

Unfortunately, I can’t remix the project right now:

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

---

<div class="post-metadata">

### Author: ![hhuman](https://avatars.discourse-cdn.com/v4/letter/h/3be4f8/32.png) [@hhuman](https://community.thunkable.com/u/hhuman)
#### Post date: [November 18, 2021, 3:45am UTC](https://community.thunkable.com/t/can-i-trigger-an-in-app-event-from-a-ble-module/1622352/5 "2021-11-18T03:45:27Z")

</div>

Tatiang, thank you for your help. Section the code. Got it. Learning.

The connection is that I made it easy to trigger the app to speak a verse by calling a couple functions. First it captures the Moment and then it Prepares it for development where it will then Play on the screen, speak/notspeak, etc:

 ![GodApp Trigger](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/d/ed27da7d0168a49cbfb1476b191026951b83716c.jpeg)

Instead of (When Provider is Shaking), is it possible to use magic to use the

I’d like to have a similar Block that would link to the play button on a Bluetooth speaker or a Bluetooth remote like this one: [https://www.amazon.com/gp/product/B085BYDHG9/ref=ppx\_yo\_dt\_b\_asin\_title\_o06\_s00?ie=UTF8&psc=1](https://www.amazon.com/gp/product/B085BYDHG9/ref=ppx_yo_dt_b_asin_title_o06_s00?ie=UTF8&psc=1)

Can you help me by making a block like that? Thank you!

---

<div class="post-metadata">

### Author: ![hhuman](https://avatars.discourse-cdn.com/v4/letter/h/3be4f8/32.png) [@hhuman](https://community.thunkable.com/u/hhuman)
#### Post date: [November 18, 2021, 3:46am UTC](https://community.thunkable.com/t/can-i-trigger-an-in-app-event-from-a-ble-module/1622352/6 "2021-11-18T03:46:54Z")

</div>

I just closed my editor, would that make a difference?

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [November 18, 2021, 5:59am UTC](https://community.thunkable.com/t/can-i-trigger-an-in-app-event-from-a-ble-module/1622352/7 "2021-11-18T05:59:09Z")

</div>

> [@hhuman](#):
>
> Instead of (When Provider is Shaking), is it possible to use magic to use the

I only wish I knew magic…

> [@hhuman](#):
>
> I’d like to have a similar Block that would link to the play button on a Bluetooth speaker or a Bluetooth remote like this one: [https://www.amazon.com/gp/product/B085BYDHG9/ref=ppx\_yo\_dt\_b\_asin\_title\_o06\_s00?ie=UTF8&psc=1](https://www.amazon.com/gp/product/B085BYDHG9/ref=ppx_yo_dt_b_asin_title_o06_s00?ie=UTF8&psc=1)
> 
> Can you help me by making a block like that? Thank you!

What I’m understanding now is that you want text to speech to play when you press play on a physical bluetooth speaker/remote.

I have not done much with bluetooth and Thunkable. Someone else may be able to help you. But hopefully my questions at least prompted you to explain it more fully and provide a screenshot which should help anyone else who sees this topic.

---

<div class="post-metadata">

### Author: ![hhuman](https://avatars.discourse-cdn.com/v4/letter/h/3be4f8/32.png) [@hhuman](https://community.thunkable.com/u/hhuman)
#### Post date: [November 18, 2021, 8:28am UTC](https://community.thunkable.com/t/can-i-trigger-an-in-app-event-from-a-ble-module/1622352/8 "2021-11-18T08:28:22Z")

</div>

Thank you, Tatiang. I really appreciate you looking into it and getting an understanding of what I’m aiming to accomplish through Bluetooth. I’m actually not using text to speech anymore. It plays a certain mp3 file for each verse now. So it has to match the correct file with the verse number. However, that’s right. I do wish to be able to use the play button on a bluetooth speaker/remote to make it display the verse words on the screen and play the related mp3 file

Thank you for helping to me to spell it all out. Peace now.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [February 16, 2022, 8:29am UTC](https://community.thunkable.com/t/can-i-trigger-an-in-app-event-from-a-ble-module/1622352/9 "2022-02-16T08:29:01Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
