Currently, if a second connection occur in Bluetooth, this second connection is automatically disconnected (line 284). This disconnection trigger the ESP_SPP_CLOSE_EVT, which clear the bit SPP_CONNECTED. But the first connection remain active, and this flag shouldn't be cleared. This fix the issue, by clearing the flag only if the last connection is closed Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> |
||
|---|---|---|
| .. | ||
| examples | ||
| src | ||
| keywords.txt | ||
| library.properties | ||
| README.md | ||
Bluetooth Serial Library
A simple Serial compatible library using ESP32 classical bluetooth (SPP)
How to use it?
-
Download one bluetooth terminal app in your smartphone
For Android: https://play.google.com/store/apps/details?id=de.kai_morich.serial_bluetooth_terminal
For iOS: https://itunes.apple.com/us/app/hm10-bluetooth-serial-lite/id1030454675 -
Flash an example sketch to your ESP32
-
Scan and pair the device in your smartphone
-
Open the bluetooth terminal app
-
Enjoy