Skip to content
* Add BluetoothSerial library

A simple UART to Classical Bluetooth bridge for ESP32

* Create

* Fix typos

* Replace deprecated header and small fixes

* Add coexistence with BLE

* Add missing semicolon
1 contributor

Users who have contributed to this file

29 lines (24 sloc) 828 Bytes
//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"
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
BluetoothSerial SerialBT;
void setup() {
SerialBT.begin("ESP32test"); //Bluetooth device name
Serial.println("The device started, now you can pair it with bluetooth!");
void loop() {
if (Serial.available()) {
if (SerialBT.available()) {
You can’t perform that action at this time.