5
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
);
}
1.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.
Summary of Contents for POECAM
Page 1: ...M5STACK POECAM 2022 V0 01...
Page 4: ...4 2 SPECIFICATIONS...
Page 9: ...M5STACK POECAM 2022 V0 01...