
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.
Содержание AtomU
Страница 1: ...AtomU 2021...