Page 1 of 1

Bluetooth Serial to Serial and iPhone

Posted: Wed Jan 30, 2019 8:18 pm
by the_pi_and_i
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. }

Re: Bluetooth Serial to Serial and iPhone

Posted: Tue Feb 05, 2019 8:05 am
by paullbart
Unfortunately this is true, Apple won't give you access to SPP on any of its mobile devices.

Re: Bluetooth Serial to Serial and iPhone

Posted: Fri Oct 18, 2019 8:32 pm
by PawelJalocha
Is this a deliberate action from the Apple side ?
Why would it not let connect an SPP device ?

Re: Bluetooth Serial to Serial and iPhone

Posted: Fri Jun 04, 2021 12:19 pm
by hardware_boss
Wait what? I can't use ESP32 to send data to iPhone devices???

Re: Bluetooth Serial to Serial and iPhone

Posted: Fri Jun 04, 2021 4:07 pm
by tommeyers
Do you mean "with blue tooth" or more generally that includes: wifi, usb, sound/ir/... i/o, gpio,wired,???