Improved ESP32 BLE pairing. Added unpair command.

This commit is contained in:
Mark Qvist 2025-04-13 16:56:45 +02:00
parent e1a2cc02bb
commit 9ef504392b
6 changed files with 116 additions and 86 deletions

View file

@ -1144,6 +1144,10 @@ void serial_callback(uint8_t sbyte) {
}
}
#endif
} else if (command == CMD_BT_UNPAIR) {
#if HAS_BLE
if (sbyte == 0x01) { bt_debond_all(); }
#endif
} else if (command == CMD_DISP_INT) {
#if HAS_DISPLAY
if (sbyte == FESC) {