
#if
!
defined
(
CONFIG_BT_ENABLED
)
||
!
defined
(
CONFIG_BLUEDROID_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
");
//Bluetooth device name
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.
Содержание PICO
Страница 1: ...M5STACK PICO 2021...