Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
几秒钟后esp32蓝牙断开 我用C++编写了一个简单的程序(使用ARDUNO IDE),打开了一个串行蓝牙连接。 #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()); } }_Bluetooth_Esp32 - Fatal编程技术网

几秒钟后esp32蓝牙断开 我用C++编写了一个简单的程序(使用ARDUNO IDE),打开了一个串行蓝牙连接。 #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()); } }

几秒钟后esp32蓝牙断开 我用C++编写了一个简单的程序(使用ARDUNO IDE),打开了一个串行蓝牙连接。 #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()); } },bluetooth,esp32,Bluetooth,Esp32,程序运行,但当我试图用手机连接到ESP32时,它成功连接,但几秒钟后断开连接 当我试图通过蓝牙终端应用程序()连接到它时,连接甚至不会启动 我用来自不同类型(NODEMCU、WROOM)的多个ESP32设备测试了该程序,但它们都有相同的问题

程序运行,但当我试图用手机连接到ESP32时,它成功连接,但几秒钟后断开连接

当我试图通过蓝牙终端应用程序()连接到它时,连接甚至不会启动

我用来自不同类型(NODEMCU、WROOM)的多个ESP32设备测试了该程序,但它们都有相同的问题