mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-06-30 12:30:59 +02:00
Fix Bluetooth Serial
This commit is contained in:
@ -27,6 +27,11 @@
|
||||
#include "esp_gap_bt_api.h"
|
||||
#include "esp_bt_device.h"
|
||||
#include "esp_spp_api.h"
|
||||
#include <esp_log.h>
|
||||
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
#include "esp32-hal-log.h"
|
||||
#endif
|
||||
|
||||
#define SPP_SERVER_NAME "ESP32_SPP_SERVER"
|
||||
#define SPP_TAG "BluetoothSerial"
|
||||
@ -208,8 +213,8 @@ int BluetoothSerial::read(void)
|
||||
if (xQueueReceive(SerialQueueBT, &c, 0)){
|
||||
return c;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t BluetoothSerial::write(uint8_t c)
|
||||
|
Reference in New Issue
Block a user