# BLE Characteristic UUID issues sending Data

**URL:** <https://community.thunkable.com/t/ble-characteristic-uuid-issues-sending-data/3334160>\
**Category:** BLE / BlueTooth\
**Tags:** bluetooth\
**Created:** [November 10, 2024, 3:31pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues-sending-data/3334160 "2024-11-10T15:31:42Z")\
**Posts on this page:** 13\
**Page:** 1

<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 10, 2024, 3:31pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues-sending-data/3334160/1 "2024-11-10T15:31:42Z")

</div>

![IMG_0522](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/1/f100d0f1b245b00b7263e8a6755a562d26d670aa.jpeg)  
I’m still having issues trying to send hexidecimal commands to my bluetooth app i’m writing. I get the error above, In one post this was a bug but I still can’t get it to work.

 ![Screenshot 2024-11-10 at 10.30.06 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/f/ef5b5c4ca05b19fe6adfa3a65359dde3639e0298.png)

```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);

```

What am i doing wrong?

---

<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 11, 2024, 7:03pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues-sending-data/3334160/2 "2024-11-11T19:03:44Z")

</div>

Hello @rhino-led  
The issue is happening because the UUID is not set correctly.  
If the documentation only gives four characters for the value, they are assuming you’ll use the default characteristic UUID.

It is discussed more in this previous topic: [Trying to connect Bluetooth BP cuff, but struggling with the "characteristic UUID" stuff - #4 by muneer](https://community.thunkable.com/t/trying-to-connect-bluetooth-bp-cuff-but-struggling-with-the-characteristic-uuid-stuff/1849525/4)

---

<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 11, 2024, 8:31pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues-sending-data/3334160/3 "2024-11-11T20:31:31Z")

</div>

using nrf connect i see this set as the uuid, am i missing something? or looking in the wrong place?

 ![IMG_0525](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/c/fc44a0017c672b825a7d8a03076d7504dc4872d4.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:** [November 11, 2024, 10:55pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues-sending-data/3334160/4 "2024-11-11T22:55:27Z")

</div>

Hi @rhino-led  
Use this as your UUID: 00002A58-0000-1000-8000-00805F9B34FB

The default is 00000000-0000-1000-8000-00805F9B34FB  
If the manufacturer is giving you only 4 digit then it is assumed that you need to use the default UUID. It starts with 8 hexadecimal digits and you need to add your 4 digit hexadecimal number as the second part of it. So instead of all zeros it would be 0000 plus your code 2A58

[Similar post](https://community.thunkable.com/t/trying-to-connect-bluetooth-bp-cuff-but-struggling-with-the-characteristic-uuid-stuff/1849525/4)

---

<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 12, 2024, 12:03am UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues-sending-data/3334160/5 "2024-11-12T00:03:15Z")

</div>

> [@ioannis](#):
>
> 00002A58-0000-1000-8000-00805F9B34FB

This is where i get disconnected, You can see the C+ code above with the 2A58.

Your saying in thunkable use “00002A58-0000-1000-8000-00805F9B34FB” as the UUID to send over?

---

<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 12, 2024, 2:31pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues-sending-data/3334160/6 "2024-11-12T14:31:58Z")

</div>

@rhino-led Yes, set '00002A58-0000-1000-8000-00805F9B34FB” as the UUID on the BLE blocks.

Do you see an error when you try to send data?

Could you please share a screenshot of your blocks?

---

<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 14, 2024, 6:13pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues-sending-data/3334160/7 "2024-11-14T18:13:01Z")

</div>

the first post had my block from thunkable. I did change it to have the full value as you said and this is what happens when i click on the box to trigger sending data to my custom pcb board

 ![IMG_0530](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/b/5becdccbd5ae979d8783e4f0f634eb43803f9b43.jpeg)

---

<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 14, 2024, 6:16pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues-sending-data/3334160/8 "2024-11-14T18:16:48Z")

</div>

Updated block

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/0/307791f4721e6c3a2f1293bf60c9a8647b2d1973.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:** [November 18, 2024, 2:27pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues-sending-data/3334160/9 "2024-11-18T14:27:17Z")

</div>

Hi @rhino-led  
As I understand, the error that you received is in the red letters.  
Have you seen any errors on the BLE device?

---

<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 18, 2024, 9:47pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues-sending-data/3334160/10 "2024-11-18T21:47:43Z")

</div>

Have not, Again unless i’m doing something wrong, I have the ID set in the code on the device, Use that same ID number in the app on your website and just get that error soon as i click the button.

---

<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 19, 2024, 3:11pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues-sending-data/3334160/11 "2024-11-19T15:11:55Z")

</div>

@rhino-led Can you make the error label larger? My guess is that there is more to the error message but the rest is getting cut off.

---

<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 26, 2024, 8:47pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues-sending-data/3334160/12 "2024-11-26T20:47:16Z")

</div>

I finally did get this working, i defined a full length 16 code vs the 4 digital in my firmware code and i was able to get data sending back and forth.

---

<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:** [December 2, 2024, 8:17pm UTC](https://community.thunkable.com/t/ble-characteristic-uuid-issues-sending-data/3334160/13 "2024-12-02T20:17:00Z")

</div>


