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:
- #include "BluetoothSerial.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);
- }