# Thunkable X Bluetooth LE send & receive HEX data

**URL:** <https://community.thunkable.com/t/thunkable-x-bluetooth-le-send-receive-hex-data/410058>\
**Category:** Questions about Thunkable X\
**Created:** [January 15, 2020, 8:37pm UTC](https://community.thunkable.com/t/thunkable-x-bluetooth-le-send-receive-hex-data/410058 "2020-01-15T20:37:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/chris/32/78883_2.png) [@Chris](https://community.thunkable.com/u/Chris)\
**Post date:** [January 15, 2020, 8:37pm UTC](https://community.thunkable.com/t/thunkable-x-bluetooth-le-send-receive-hex-data/410058/1 "2020-01-15T20:37:16Z")

</div>

Hi,

I need to send some HEX values like A00101A2 to a bluetooth relay but unfortunately I can’t get it to work with the BLE component. The Device is sucessfully connected via UUID but I will always receive “Can’t write the charasteristics provided” ☹

best, Chris

---

<div class="post-metadata">

**Author:** ![Chris](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/chris/32/78883_2.png) [@Chris](https://community.thunkable.com/u/Chris)\
**Post date:** [January 17, 2020, 3:07pm UTC](https://community.thunkable.com/t/thunkable-x-bluetooth-le-send-receive-hex-data/410058/2 "2020-01-17T15:07:40Z")

</div>

Nobody who has an idea? It really seems like it is quite essential to be able to handle HEX values with BLE because now another device I want to read data from also seems to provide mostly in HEX and I only get a **�** sign as response for all values that are in HEX according to docs… only values that come in ascii work ☹

Best,  
Chris

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [January 17, 2020, 5:17pm UTC](https://community.thunkable.com/t/thunkable-x-bluetooth-le-send-receive-hex-data/410058/3 "2020-01-17T17:17:50Z")

</div>

I don’t think the current implementation will support this - but we can add it to the list of requests for future updates.

In the meantime, what device are you sending HEX to? is there any way you can do the conversion (or a lookup table?) on the device side, rather than the app side?

---

<div class="post-metadata">

**Author:** ![Chris](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/chris/32/78883_2.png) [@Chris](https://community.thunkable.com/u/Chris)\
**Post date:** [January 17, 2020, 5:22pm UTC](https://community.thunkable.com/t/thunkable-x-bluetooth-le-send-receive-hex-data/410058/4 "2020-01-17T17:22:19Z")

</div>

> [@domhnallohanlon](#):
>
> I don’t think the current implementation will support this - but we can add it to the list of requests for future updates.

It would really be awesome because right now I cannot work with the BLE component until I find a way to convert the values ☹

> [@domhnallohanlon](#):
>
> In the meantime, what device are you sending HEX to? is there any way you can do the conversion (or a lookup table?) on the device side, rather than the app side?

Unfortunately I can’t… One device I wanted to use is a BLE relay that turns on/off power when receiving certain HEX values. The other device I wanted to work with is a vaporizer where I wanted to create an app that reads values like temperature, battery,… and also set values… Unfortunately mostly all values are HEX… I think this might be the same issue why I never managed to get my electric scooter to work ^^

No expert but if BLE devices often use HEX to communicate it would really make sense to add this feature 🙈 or maybe I am just not lucky with my devices… For the relay I could try replacing it with an Arduino - never worked with that before but I guess you can set it up to NOT use HEX values 🤔 Unfortunately that does not work for BLE devices I already have and that would be much fun to implement into own apps…

Best, Chris

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [January 17, 2020, 5:27pm UTC](https://community.thunkable.com/t/thunkable-x-bluetooth-le-send-receive-hex-data/410058/5 "2020-01-17T17:27:59Z")

</div>

> [@Chris](#):
>
> It would really be awesome

Agreed!

* * *

> [@Chris](#):
>
> One device I wanted to use is a BLE relay that turns on/off power

I actually just got something like this too (pretty sure it works on WiFi though?) but I can take a closer look.

---

<div class="post-metadata">

**Author:** ![Chris](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/chris/32/78883_2.png) [@Chris](https://community.thunkable.com/u/Chris)\
**Post date:** [February 3, 2021, 2:44pm UTC](https://community.thunkable.com/t/thunkable-x-bluetooth-le-send-receive-hex-data/410058/6 "2021-02-03T14:44:41Z")

</div>

Hey,

just wanted to check if this is possible by now?

Best, Chris

---

<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:** [February 3, 2021, 3:47pm UTC](https://community.thunkable.com/t/thunkable-x-bluetooth-le-send-receive-hex-data/410058/7 "2021-02-03T15:47:16Z")

</div>

I don’t believe anything has changed with respect to Bluetooth features. But it should be possible to receive HEX data and parse it for specific values you need. It’s not simple but there are a few threads here that deal with that topic. As for sending HEX, I honestly have no idea.

---

<div class="post-metadata">

**Author:** ![bluerfox15uht9](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bluerfox15uht9](https://community.thunkable.com/u/bluerfox15uht9)\
**Post date:** [February 20, 2021, 6:11am UTC](https://community.thunkable.com/t/thunkable-x-bluetooth-le-send-receive-hex-data/410058/8 "2021-02-20T06:11:17Z")

</div>

I made something that can convert the hex into regular numbers (base 16 to base 10) so, if you figure out the connection issue, this will give you proper numbers.

If you copy the blocks exactly, it shouldn’t matter how large the text is. It detects the size and uses it to set everything up

> [@A brick wall that i've smacked into with hex codes](https://community.thunkable.com/t/a-brick-wall-that-ive-smacked-into-with-hex-codes/1068428/21):
>
> I HAVE RETURNED! I made a base-16 to base-10 converter that took me a bit too long to figure out! I messed up on the exponent thing at first, but now it works! [https://x.thunkable.com/copy/488447599dec20188fba59e1e7570261](https://x.thunkable.com/copy/488447599dec20188fba59e1e7570261)

---

<div class="post-metadata">

**Author:** ![cdvierone](https://avatars.discourse-cdn.com/v4/letter/c/b77776/32.png) [@cdvierone](https://community.thunkable.com/u/cdvierone)\
**Post date:** [February 20, 2021, 4:34pm UTC](https://community.thunkable.com/t/thunkable-x-bluetooth-le-send-receive-hex-data/410058/9 "2021-02-20T16:34:05Z")

</div>

Hi Chris  
I am working on a project with a colleague I build the hardware and the app and he the firmware on an “ESP32”, all ininput and output data are in hexadecimal format; when I send a “data” I do it as a text, so I send for example the text “A2F3”, when I receive, before processing the data I am forced to convert it from “HEX to DEC” with a series of blocks, as he rightly advised " bluerfox15uht9 ".  
This is currently the only way to operate.  
It would be nice if the “Thunkable” staff allowed to deal with “HEX” values in mathematical format.  
Hi

---

<div class="post-metadata">

**Author:** ![bluerfox15uht9](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bluerfox15uht9](https://community.thunkable.com/u/bluerfox15uht9)\
**Post date:** [February 21, 2021, 8:51pm UTC](https://community.thunkable.com/t/thunkable-x-bluetooth-le-send-receive-hex-data/410058/10 "2021-02-21T20:51:03Z")

</div>

I’m sorry, is it not possible to send a string of numbers to a device? id imagine that if the device was waiting for numbers in hex format, that it would JUST read the transmitted string as hex, no?

---

<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:45am UTC](https://community.thunkable.com/t/thunkable-x-bluetooth-le-send-receive-hex-data/410058/11 "2024-11-08T11:45:59Z")

</div>


