# BLE Characteristic UUID issues

**URL:** <https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037>\
**Category:** Questions about Thunkable X\
**Tags:** bluetooth\
**Created:** [March 10, 2020, 2:52pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037 "2020-03-10T14:52:52Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![marothwell](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@marothwell](https://community.thunkable.com/u/marothwell)\
**Post date:** [March 10, 2020, 2:52pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/1 "2020-03-10T14:52:52Z")

</div>

I created an app: [Thunkable](https://x.thunkable.com/projects/5e447690fa2000a7c8ab5c14/420a269b-5845-4bc4-8fcb-4fa88a3e5e79/blocks)

This app is using BLE to talk to an HM-10 module on arduino. When I scan, I find my device. When I connect, it reports that it is connected. When I try to send a string I get the error: “Can’t write the characteristic provided”.

I attached screen shots of my block, lightblue screen shot, error message.

I used lightblue to find the Advertised Service UUIDs. Is that the correct ID? ![SurfBleBlock](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/0/701565353a3c06e5d17ed9e1a6e67c7b53aacc7b.png)

 ![image000000 (1)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/e/9e6edd1dfc2c73a8b324471b7337317ad964bdc3.jpeg) ![image000000](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/8/b88f8208019983520d9f99f8a10bffe062951206.jpeg)

---

<div class="post-metadata">

**Author:** ![deepalsoyfgo](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@deepalsoyfgo](https://community.thunkable.com/u/deepalsoyfgo)\
**Post date:** [March 14, 2020, 6:31pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/2 "2020-03-14T18:31:25Z")

</div>

I Have the same issue using IOs and hm-10…

---

<div class="post-metadata">

**Author:** ![ejones.uk](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ejones.uk](https://community.thunkable.com/u/ejones.uk)\
**Post date:** [March 14, 2020, 9:35pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/3 "2020-03-14T21:35:21Z")

</div>

You need to ensure the device has READ, WRITE characteristics, and possibly NOTIFY and INDICATE.  
You normally have separate UUID characteristics for TX and RX.

In you first UUID I assume that is the service UUID, you may also need additional ones so add TX and RX characteristic ids as below, I’ve indicated the first block, keep the rest the same.

0000ffe1- etc  
and  
0000ffe2- etc

HTH

---

<div class="post-metadata">

**Author:** ![marothwell](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@marothwell](https://community.thunkable.com/u/marothwell)\
**Post date:** [March 16, 2020, 3:34pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/4 "2020-03-16T15:34:32Z")

</div>

Over the weekend, I was playing around with the UUID and found that I needed to use 0000ffe1-… instead of 0000ffe0…

I am now able to send the commands, and the Arduino with HM-10 module is receiving the message and doing its work as expected.

---

<div class="post-metadata">

**Author:** ![jackmanjlskmv1xe](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jackmanjlskmv1xe/32/63072_2.png) [@jackmanjlskmv1xe](https://community.thunkable.com/u/jackmanjlskmv1xe)\
**Post date:** [March 16, 2020, 4:25pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/5 "2020-03-16T16:25:17Z")

</div>

marothwell,

**ISSUE:**  
I can’t get any value in the label except a simple comma from Device Names when I do a device scan

**BACKGROUND**  
I have a design that I implemented in AI2 and Android Studio but there are many features that ThX has that would expedite my schedule. So, I made the transition.

I’m using a ESP32 with BLE.

The issue that I’ve had for the last 2 days is that I can’t get past the initial scan…possibly you could lead me in the right direction.

I’ve created a very small test program. The Design is a scan button and a label, that’s it. The blocks section is basically what you have in your design, that is:

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

That’s all there is to the test app, there is no more.

**Question**  
when you do a scan with the above block do you see device names in the lbl\_BlueToothCon?

Any input would be appreciated.

---

<div class="post-metadata">

**Author:** ![ejones.uk](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ejones.uk](https://community.thunkable.com/u/ejones.uk)\
**Post date:** [March 16, 2020, 4:50pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/6 "2020-03-16T16:50:25Z")

</div>

Use a list to hold the returned devices, a list will be populated with BLE as text, some empty entries I assume are standard Bluetooth.  
I am currently working on a controller that I have produced for Android, much simpler and better handling, there is no disconnect, which means that the device you are connecting to has to be reset to clear the connection. Big omission in my opinion, you should be able to gracefully disconnect for any device.

From [device names] (a list viewer) set text to [Device Names]  
This issue was causing me so much grief, it would be great if they explained that the returned values could be directly input to a list viewer.  
And they’d like me to spend $200 for a limited program generator. Maybe if they fixed these basic options, or at least give a time line for such.  
I can connect, but cannot send data as it refuses to accept the Characteristic ID

---

<div class="post-metadata">

**Author:** ![marothwell](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@marothwell](https://community.thunkable.com/u/marothwell)\
**Post date:** [March 16, 2020, 4:50pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/7 "2020-03-16T16:50:38Z")

</div>

Yes, I do get a list of device names in my label. It does take a few seconds, so you have to wait.

---

<div class="post-metadata">

**Author:** ![ejones.uk](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ejones.uk](https://community.thunkable.com/u/ejones.uk)\
**Post date:** [March 16, 2020, 4:53pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/8 "2020-03-16T16:53:25Z")

</div>

It takes 10 seconds, but parsing a string is also difficult and does a lovely white screen.

With a list picker at least you can select your preferred device with a touch and connect to it by item.

---

<div class="post-metadata">

**Author:** ![marothwell](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@marothwell](https://community.thunkable.com/u/marothwell)\
**Post date:** [March 16, 2020, 5:14pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/9 "2020-03-16T17:14:23Z")

</div>

ejones - could you show my your block for the list picker? I have tried a couple things, but not had success.

---

<div class="post-metadata">

**Author:** ![ejones.uk](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ejones.uk](https://community.thunkable.com/u/ejones.uk)\
**Post date:** [March 16, 2020, 5:28pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/10 "2020-03-16T17:28:31Z")

</div>

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

Ive added a text to speech to give audible feed back, you can ignore those.  
The important line is in the then do last line to populate the device\_list text items.  
place a list viewer on the screen first, then in blocks you can populate it.

HTH

My connect is as follows

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

You need the pick list to obtain the text to enter in the connect option.

---

<div class="post-metadata">

**Author:** ![iainmorris111649l](https://avatars.discourse-cdn.com/v4/letter/i/a9adbd/32.png) [@iainmorris111649l](https://community.thunkable.com/u/iainmorris111649l)\
**Post date:** [February 3, 2021, 7:56am UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/11 "2021-02-03T07:56:34Z")

</div>

Thank you so very much,

I just could not get it to work until I replaced that 0 with a 1 and… voila.

All my coding club students need BT remote control for there robots. Now i can Thunk instead of AI2ing…and IOS can join the party too.

UR Genius.

---

<div class="post-metadata">

**Author:** ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)\
**Post date:** [February 3, 2021, 1:59pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/12 "2021-02-03T13:59:06Z")

</div>

just so you know @iainmorris111649l , @ejones.uk was last seen Mar 24, 2020

---

<div class="post-metadata">

**Author:** ![rhino-led](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rhino-led/32/187862_2.png) [@rhino-led](https://community.thunkable.com/u/rhino-led)\
**Post date:** [November 3, 2024, 1:24am UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/13 "2024-11-03T01:24:37Z")

</div>

I’m having this issue as well “ **Can’t write the characteristic provided** ”. Its odd how i can’t find any forum post of people having these issues, So i’m either missing something or there is a massive void in forum post.

```auto
#include <bluefruit.h>
#include <Adafruit_NeoPixel.h>

#define NUM_LEDS_CH1 160 // Number of LEDs in channel 1
#define NUM_LEDS_CH2 160 // Number of LEDs in channel 2
#define NUM_LEDS_CH3 80 // Number of LEDs in channel 3
#define NUM_LEDS_CH4 80 // Number of LEDs in channel 4
#define NUM_LEDS_CH5 60 // Number of LEDs in channel 5

#define DATA_PIN_CH1 13 // Data pin for channel 1
#define DATA_PIN_CH2 11 // Data pin for channel 2
#define DATA_PIN_CH3 8 // Data pin for channel 3
#define DATA_PIN_CH4 6 // Data pin for channel 4
#define DATA_PIN_CH5 4 // Data pin for channel 5

Adafruit_NeoPixel strip_ch1 = Adafruit_NeoPixel(NUM_LEDS_CH1, DATA_PIN_CH1, NEO_GRB);
Adafruit_NeoPixel strip_ch2 = Adafruit_NeoPixel(NUM_LEDS_CH2, DATA_PIN_CH2, NEO_GRB);
Adafruit_NeoPixel strip_ch3 = Adafruit_NeoPixel(NUM_LEDS_CH3, DATA_PIN_CH3, NEO_GRB);
Adafruit_NeoPixel strip_ch4 = Adafruit_NeoPixel(NUM_LEDS_CH4, DATA_PIN_CH4, NEO_GRB);
Adafruit_NeoPixel strip_ch5 = Adafruit_NeoPixel(NUM_LEDS_CH5, DATA_PIN_CH5, NEO_GRB);

BLEDis bledis;
BLEService ledControlService = BLEService(0x180A);
BLECharacteristic patternChar = BLECharacteristic(0x2A57); // Pattern selection
BLECharacteristic colorChar = BLECharacteristic(0x2A58);   

```

Soon as i click my button i get that error.

 ![Screenshot 2024-11-02 at 9.24.10 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/4/34a5794c23cc962c296409ee4fc4550cfa335b5f.png)

What am i doing wrong?

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [November 4, 2024, 2:50pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/14 "2024-11-04T14:50:28Z")

</div>

@rhino-led As I mentioned in a different thread, this is likely a bug.

---

<div class="post-metadata">

**Author:** ![rhino-led](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rhino-led/32/187862_2.png) [@rhino-led](https://community.thunkable.com/u/rhino-led)\
**Post date:** [November 4, 2024, 3:04pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/15 "2024-11-04T15:04:29Z")

</div>

Thanks for the answer, Let me know if you guys can figure it out, I’m dead to rights currently with my app development.

Couldn’t get string or hexadecimal or the array one to work after updating my C+ code

Keep me posted!

---

<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, 11:18am UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/16 "2024-11-08T11:18:09Z")

</div>

Hello @rhino-led  
Thank you again for your patience. I would like to let you know that we have now officially released a fix for this bug.  
​  
Please keep in mind that you may need to do a [hard refresh](https://docs.thunkable.com/getting-started/data-sources/data-sources#hard-refresh-your-browser)of your browser for the changes to take effect in your project. If you experienced any of these issues on the [Thunkable Live](https://thunkable.com/mobile) app, you will need to update to the latest version through the App Store and/or Google Play Store before any changes will occur. If your [downloaded or published app](https://docs.thunkable.com/publishing-apps/publish) is affected by any of these issues, you will need to re-download or re-publish your app for these changes to take effect.

---

<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, 11:18am UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues/508037/17 "2024-11-08T11:18:21Z")

</div>


