#if !defined(CONFIG_BT_ENABLED)
#error
Bluetooth is not enabled! Please run `make menuconfig` to and en
able it
#endif
BluetoothSerial
SerialBT;
void
setup() {
Serial.begin(115200);
SerialBT.begin("ESP32test");
Serial.println("The device started, now you can pair it with bluetoot
h!");
}
void
loop() {
if (Serial.available()) {
SerialBT.write(Serial.read());
}
if (SerialBT.available()) {
Serial.write(SerialBT.read());
}
delay(20);
}
3.3. WIFI SCANNING
Open the Arduino IDE and open the example program `File`->`Examples`->`WiFi`->`WiFiScan`.
Connect the device to the computer and select the corresponding port to burn. After
completion, the device will automatically run the WiFi scan, and the current WiFi scan result can
be obtained through the serial port monitor that comes with the Arduino.
||
!defined(CONFIG_BLUEDROID_ENABLED)
//Bluetooth device name
Need help?
Do you have a question about the PICO and is the answer not in the manual?