ESP32
打开Arduino,选择“文件”—“示例”—“BluetoothSerial”—“SerialToSerialBT”:
然后选择开发板和端口,编译烧录,在下方发送框内输入要发送的信息
//This example code is in the Public Domain (or CC0 licensed, at your option.)
//By Evandro Copercini - 2018
//
//This example creates a bridge between Serial and Classical Bluetooth (SPP)
//and also demonstrate that SerialBT have the same functionalities of a normal Serial
#include "BluetoothSerial.h"
#if !