# \[Solved\] Can I use BLE on iOS?

**URL:** <https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [July 5, 2019, 11:45am UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834 "2019-07-05T11:45:02Z")\
**Posts on this page:** 12\
**Page:** 3

<div class="post-metadata">

**Author:** ![kufirre](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kufirre/32/45596_2.png) [@kufirre](https://community.thunkable.com/u/kufirre)\
**Post date:** [June 29, 2020, 9:18am UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/45 "2020-06-29T09:18:17Z")

</div>

I support, as an embedded systems developer who can’t code mobile apps at this time. IoT is a BIG thing

---

<div class="post-metadata">

**Author:** ![neuheisser](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@neuheisser](https://community.thunkable.com/u/neuheisser)\
**Post date:** [September 9, 2020, 9:25am UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/46 "2020-09-09T09:25:12Z")

</div>

Just to update this thread with something that I haven’t found announced:  
BLE now works on iOS even in Thunkable Live app!  
Somehow it just started, even if it still has a warning in Live Test.  
So, @domhnallohanlon, you can remove the warning - it works now 🙂

---

<div class="post-metadata">

**Author:** ![neuheisser](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@neuheisser](https://community.thunkable.com/u/neuheisser)\
**Post date:** [September 9, 2020, 10:02am UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/47 "2020-09-09T10:02:20Z")

</div>

Even more good news - BLE component was silently updated - no announcement on that too! I have just noticed new options, but you have to click on the block itself, they are still not available in the blocks pane:  
 ![Screenshot 2020-09-09 at 11.54.47](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/9/a9c118488205bd70cbda48eaeb376d9b84ddb78c.png)

By now, I have tested only the Disconnect function, AND IT WORKS!!! 😃 😃 🙂

I’ll test the others and report, but this is really good news for us working with BLE!  
Thanks @domhnallohanlon and please announce these updates!

---

<div class="post-metadata">

**Author:** ![eddie.rebehy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eddie.rebehy/32/67993_2.png) [@eddie.rebehy](https://community.thunkable.com/u/eddie.rebehy)\
**Post date:** [September 13, 2020, 8:23am UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/48 "2020-09-13T08:23:16Z")

</div>

A couple of you have asked me about the ESP32 talking (RX/TX) to Thunkable X. Below is the crux of my Arduino handshake code. It uses nkolban BLE libraries…  
I am concatenating packets of 20b directly into a SPIFF file.  
…  
class MyCallbacks: public BLECharacteristicCallbacks {  
char lastpacket[41] = {’\0’};  
char check[41] = {’\0’};  
File packets = SPIFFS.open("/uploadstring.txt", FILE\_APPEND);  
std::string pw = SPIFF\_string\_delim\_eol("/credentials.txt", “|pw|”);//custom function called

```
void onWrite(BLECharacteristic *pCharacteristic) {
  std::string rxValue = pCharacteristic->getValue();
  if (rxValue.length() > 0) {
    packets.print(rxValue.c_str());//append packet to file.
    strcat(lastpacket, rxValue.c_str());// ***constantly tagging two consecutive packets to check unbroken password or other keywords.***
    strcpy(check, lastpacket);
    strcpy(lastpacket, rxValue.c_str());
    pTxCharacteristic->setValue(rxValue);// ***send Thunkable back the packet for checksum.***
    if (strstr(check, pw.c_str()) != NULL && check[strlen(check) - 2] == '~' ) { // ***check for flag sent by Thunkable. security password variable confirms credentials, integrity and end of packet.***
      packets.close();
      Serial.println("success");//Serial monitor 
      pTxCharacteristic->setValue("success"); // ***this is sent to Thunkable on completion***
      // btStop(); // ***Now using Thunkable to disconnect***
    }
  }
}

```

};  
…

I will eventually get around to documenting my project which I will be happy to share excerpts of including Arduino / Firebase / Thunkable three way communication. Sorry for the brevity guys but I never was much good at documentation and explanation of my modules. We all have our weaknesses 🙂

---

<div class="post-metadata">

**Author:** ![rkx1984t1q54a](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rkx1984t1q54a/32/87325_2.png) [@rkx1984t1q54a](https://community.thunkable.com/u/rkx1984t1q54a)\
**Post date:** [October 27, 2020, 1:45pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/49 "2020-10-27T13:45:54Z")

</div>

This is exactly what I have been searching for and others too… Adding the bellow \*\* \*\* portion to the existing code worked perfectly. So many people were blaming thunkable (The, requiring the BLE receive to be an EVENT block aside)

pCharacteristic = pService-\>createCharacteristic(  
CHARACTERISTIC\_UUID\_TX,  
BLECharacteristic::PROPERTY\_NOTIFY\*\*|BLECharacteristic::PROPERTY\_READ\*\*  
);

Top man Mark @ Thunkable and the original person

---

<div class="post-metadata">

**Author:** ![neuheisser](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@neuheisser](https://community.thunkable.com/u/neuheisser)\
**Post date:** [December 6, 2020, 1:28pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/50 "2020-12-06T13:28:55Z")

</div>

OK - I can finally confirm that BLE transfer works both ways with ESP32 🙂  
The key is really in setting right properties, and the easiest way for setting things up is

1. flashing the example BLE\_notify from ESP32 BLE Arduino folder in Examples
2. Connecting to the device name ESP32 (BLE block)
3. Using CHARACTERISTIC\_UUID from the example for Receive block.  
And basically you got it. Good luck and thanks for help Richard and the others!

---

<div class="post-metadata">

**Author:** ![bretthay9pizs](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bretthay9pizs](https://community.thunkable.com/u/bretthay9pizs)\
**Post date:** [March 15, 2021, 1:06pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/51 "2021-03-15T13:06:26Z")

</div>

Could you show an example of the receive UUID?  
I’m using either a romeo mini 2.0 or a HM-10, or a Nano BLE for modules and can transmit to the device from phone app, but can’t receive anything but “undefined” error message.

---

<div class="post-metadata">

**Author:** ![neuheisser](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@neuheisser](https://community.thunkable.com/u/neuheisser)\
**Post date:** [March 15, 2021, 1:23pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/52 "2021-03-15T13:23:55Z")

</div>

Have you tried with BLE\_notify example?

---

<div class="post-metadata">

**Author:** ![sma.smart](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@sma.smart](https://community.thunkable.com/u/sma.smart)\
**Post date:** [April 13, 2021, 6:05am UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/53 "2021-04-13T06:05:25Z")

</div>

> [@neuheisser](#):
>
> CHARACTERISTIC\_UUID

Thank for your sharing,  
I’m using HM10 connect with PC via USB to UART module. HM10 connect with my Android phone via Bluetooth.  
I can send string from phone to PC no problem, but could not receive string from PC.  
I’m using this UUID: 0000FFE1-0000-1000-8000-00805F9B34FB.  
Please advise any other UUID should be use? Thank you!

---

<div class="post-metadata">

**Author:** ![mbnarciap9xb](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@mbnarciap9xb](https://community.thunkable.com/u/mbnarciap9xb)\
**Post date:** [April 14, 2021, 4:17pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/54 "2021-04-14T16:17:14Z")

</div>

I believe this has something to do with the notification/indication characteristic and not the UUID listed for the HM-10 BLE. Wasn’t able to find a solution for this problem

---

<div class="post-metadata">

**Author:** ![a57sherry6u](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@a57sherry6u](https://community.thunkable.com/u/a57sherry6u)\
**Post date:** [June 6, 2021, 8:19pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/55 "2021-06-06T20:19:54Z")

</div>

Hi,  
can you please tell me which block i can use to get notify about device notifications such as call or messages.

---

<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:25am UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/56 "2024-11-08T11:25:23Z")

</div>

Closed on November 8, 2024, 11:25am UTC



[Previous page](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834.md?page=2)
