ESP32_经典蓝牙使用
一、经典蓝牙
1、示例代码
先来个示例代码
配置成功后会提示BT initial ok and ready to pair.
表示蓝牙已经初始化完成,等待连接
这个时候我们可以用手机的蓝牙调试软件,连接,并且进行数据的收发测试
蓝牙调试软件链接(安卓软件)
提取码:1021
#include <Arduino.h>
#include <BluetoothSerial.h>
BluetoothSerial SerialBT;
void setup()
{
Serial.begin(