blynkkk / blynk-library

Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.
https://blynk.io
MIT License
3.83k stars 1.38k forks source link

ESP32 Bluetooth Classic (BT) support #428

Closed FedericoBusero closed 5 years ago

FedericoBusero commented 6 years ago

Description

Add support for Bluetooth (classic, BT) on ESP32 (Android only). This need an up-to-date ESP32 library, if not it will not compile.

I did not make use of BluetoothSerial, due to the lack of onConnect, onDisconnect and Txpower functionality. By handling connect/disconnect nicely, Blynk always keeps working perfectly without sync-problems when going out-of-range and coming back. Remark that this needs Android app 2.26.7, as in 2.26.6 there is a bug in the Bluetooth implementation (I checked with a development version, in which Bluetooth issues are solved).