arduino-esp32 icon indicating copy to clipboard operation
arduino-esp32 copied to clipboard

The BT device of the esp32 cannot be found on an iPhone running IOS16

Open fary99 opened this issue 2 years ago • 8 comments

Board

esp32

Device Description

Esp32 development board

Hardware Configuration

none

Version

v2.0.2

IDE Name

Arduino IDE

Operating System

windows10

Flash frequency

80

PSRAM enabled

yes

Upload speed

921600

Description

iphone cannot search for Bluetooth devices for esp32

Sketch

//This example code is in the Public Domain (or CC0 licensed, at your option.)
//By Evandro Copercini - 2018
//
//This example creates a bridge between Serial and Classical Bluetooth (SPP)
//and also demonstrate that SerialBT have the same functionalities of a normal Serial

#include "BluetoothSerial.h"
#include "esp_bt.h"
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
#endif

BluetoothSerial SerialBT;

void setup() {
  Serial.begin(115200);
  SerialBT.begin("ESP32test"); //Bluetooth device name
  Serial.println("The device started, now you can pair it with bluetooth!");
}

void loop() {
  if (Serial.available()) {
    SerialBT.write(Serial.read());
  }
  if (SerialBT.available()) {
    Serial.write(SerialBT.read());
  }
  delay(20);
}

Debug Message

none

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • [X] I confirm I have checked existing issues, online documentation and Troubleshooting guide.

fary99 avatar Oct 19 '22 03:10 fary99

https://github.com/espressif/arduino-esp32/tree/master/libraries/BluetoothSerial

lbernstone avatar Oct 19 '22 05:10 lbernstone

https://github.com/espressif/arduino-esp32/tree/master/libraries/BluetoothSerial

I cannot access the IOS app link provided by Readme

fary99 avatar Oct 20 '22 00:10 fary99

Could it be that the iPhone does not ave classic BT radio? And supports only BLE?

me-no-dev avatar Oct 21 '22 09:10 me-no-dev

Closing es Expired due to no answer. If needed, you can reopen it.

VojtechBartoska avatar Feb 23 '23 18:02 VojtechBartoska

Is it solve ? I still waiting.

sirapol avatar Jan 05 '24 17:01 sirapol

I have the same problem.

marioraffin avatar Feb 07 '24 09:02 marioraffin

I have the same problem. @VojtechBartoska could you please leave this issue open or hint us in any direction we could explore?

hperrot avatar Mar 19 '24 05:03 hperrot

Hello, reopening.

VojtechBartoska avatar Mar 19 '24 10:03 VojtechBartoska

iOS Devices do not support classic BT SPP (BTSerial). Only BLE works with iOS

me-no-dev avatar Apr 15 '24 12:04 me-no-dev

@sirapol I am just posting a comment from IDF issue about BT Classic on iPhone. Take a look to see the options you have: https://github.com/espressif/esp-idf/issues/6513#issuecomment-776244467

Also link to Apple's supported Bluetooth profiles on iOS and iPadOS may help.

P-R-O-C-H-Y avatar Apr 22 '24 12:04 P-R-O-C-H-Y