Fix Bluetooth Serial
This commit is contained in:
parent
3a4ec66d41
commit
25dff4f044
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user