Installation Instructions
WiFiscanningfunction
#include"BluetoothSerial.h"
#if!defined(CONFIG_BT_ENABLED)||!defined(CONFIG_BLUEDROID_ENABLED)
#errorBluetoothisnotenabled!Pleaserun`makemenuconfig`toandenableit
#endif
BluetoothSerialSerialBT;
voidsetup(){
Serial.begin(115200);
SerialBT.begin("ESP32test");//Bluetoothdevicename
Serial.println("Thedevicestarted,nowyoucanpairitwithbluetooth!");
}
voidloop(){
if(Serial.available()){
SerialBT.write(Serial.read());
}
if(SerialBT.available()){
Serial.write(SerialBT.read());
}
delay(20);
}