Bluetooth Serial to Serial and iPhone

the_pi_and_i
Posts: 1
Joined: Wed Jan 30, 2019 7:57 pm

Bluetooth Serial to Serial and iPhone

Postby the_pi_and_i » Wed Jan 30, 2019 8:18 pm

Using Arduino IDE, I downloaded the example sketch "SerialToSerialBT". It compiles and runs successfully.

My iPhone 8 will not see the ESP32. It does see all my other Bluetooth devices. Wife's iPhone 7 doesn't see it either. I have tried ESP development board and ESP Node MCU board.

Checked with someone who has Android phone, and his phone will see the ESP32 running the same sketch.

I noticed this in the sketch: "!defined(CONFIG_BLUEDROID_ENABLED)". This seems to refer to an Android device. There is nothing like that statement that would refer to an iPhone.

Is it true that the Bluetooth Serial will not work with the iPhone? Is it possible to get it to work with the iPhone?

Thanks

The sketch:
  1. #include "BluetoothSerial.h"
  2.  
  3. #if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
  4. #error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
  5. #endif
  6.  
  7. BluetoothSerial SerialBT;
  8.  
  9. void setup() {
  10.   Serial.begin(115200);
  11.   SerialBT.begin("ESP32test"); //Bluetooth device name
  12.   Serial.println("The device started, now you can pair it with bluetooth!");
  13. }
  14.  
  15. void loop() {
  16.   if (Serial.available()) {
  17.     SerialBT.write(Serial.read());
  18.   }
  19.   if (SerialBT.available()) {
  20.     Serial.write(SerialBT.read());
  21.   }
  22.   delay(20);
  23. }

paullbart
Posts: 4
Joined: Fri Dec 07, 2018 2:32 am

Re: Bluetooth Serial to Serial and iPhone

Postby paullbart » Tue Feb 05, 2019 8:05 am

Unfortunately this is true, Apple won't give you access to SPP on any of its mobile devices.

PawelJalocha
Posts: 13
Joined: Tue Apr 24, 2018 9:14 pm

Re: Bluetooth Serial to Serial and iPhone

Postby PawelJalocha » Fri Oct 18, 2019 8:32 pm

Is this a deliberate action from the Apple side ?
Why would it not let connect an SPP device ?

hardware_boss
Posts: 6
Joined: Thu May 27, 2021 4:04 am

Re: Bluetooth Serial to Serial and iPhone

Postby hardware_boss » Fri Jun 04, 2021 12:19 pm

Wait what? I can't use ESP32 to send data to iPhone devices???

tommeyers
Posts: 184
Joined: Tue Apr 17, 2018 1:51 pm
Location: Santiago, Dominican Republic

Re: Bluetooth Serial to Serial and iPhone

Postby tommeyers » Fri Jun 04, 2021 4:07 pm

Do you mean "with blue tooth" or more generally that includes: wifi, usb, sound/ir/... i/o, gpio,wired,???
IT Professional, Maker
Santiago, Dominican Republic

Who is online

Users browsing this forum: No registered users and 85 guests