版本更新貌似无法使用了。大佬能修改下吗
In file included from src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:1:0:
src/esphome/components/esp32_ble_client/esp32_ble_client.h:102:3: error: 'SemaphoreHandle_t' does not name a type
SemaphoreHandle_t clientlock;
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp: In member function 'virtual void esphome::esp32_ble_client::ESP32BLEClient::setup()':
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:195:9: error: 'class esphome::esp32_ble_client::ESP32BLEClient' has no member named 'clientlock'
this->clientlock = xSemaphoreCreateMutex();
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:195:46: error: 'xSemaphoreCreateMutex' was not declared in this scope
this->clientlock = xSemaphoreCreateMutex();
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp: In static member function 'static bool esphome::esp32_ble_client::ESP32BLEClient::ble_setup()':
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:221:16: error: 'btStart' was not declared in this scope
if (!btStart()) {
^
In file included from src/esphome/components/meizu_ble/meizu_ble.h:5:0,
from src/esphome/components/meizu_ble/meizu_ble.cpp:1:
src/esphome/components/esp32_ble_client/esp32_ble_client.h:102:3: error: 'SemaphoreHandle_t' does not name a type
SemaphoreHandle_t clientlock;
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:250:12: error: 'delay' was not declared in this scope
delay(200);
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp: In member function 'void esphome::esp32_ble_client::ESP32BLEClient::on_disconnected()':
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:289:12: error: 'delay' was not declared in this scope
delay(1000);
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp: In member function 'void esphome::esp32_ble_client::ESP32BLEClient::next_task()':
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:299:32: error: 'class esphome::esp32_ble_client::ESP32BLEClient' has no member named 'clientlock'
while (!xSemaphoreTake(this->clientlock, 20L / portTICK_PERIOD_MS)) {
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:299:70: error: 'xSemaphoreTake' was not declared in this scope
while (!xSemaphoreTake(this->clientlock, 20L / portTICK_PERIOD_MS)) {
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:321:24: error: 'class esphome::esp32_ble_client::ESP32BLEClient' has no member named 'clientlock'
xSemaphoreGive(this->clientlock);
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:321:36: error: 'xSemaphoreGive' was not declared in this scope
xSemaphoreGive(this->clientlock);
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp: In member function 'void esphome::esp32_ble_client::ESP32BLEClient::connect(esphome::esp32_ble_client::ESPBTClientListener, uint64_t)':
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:326:28: error: 'class esphome::esp32_ble_client::ESP32BLEClient' has no member named 'clientlock'
if (!xSemaphoreTake(this->clientlock, 20L / portTICK_PERIOD_MS)) {
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:326:66: error: 'xSemaphoreTake' was not declared in this scope
if (!xSemaphoreTake(this->clientlock, 20L / portTICK_PERIOD_MS)) {
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:352:23: error: 'class esphome::esp32_ble_client::ESP32BLEClient' has no member named 'clientlock'
xSemaphoreGive(this->clientlock);
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:352:35: error: 'xSemaphoreGive' was not declared in this scope
xSemaphoreGive(this->clientlock);
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp: In member function 'void esphome::esp32_ble_client::ESP32BLEClient::connect_first(esphome::esp32_ble_client::ESPBTClientListener, uint64_t)':
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:362:28: error: 'class esphome::esp32_ble_client::ESP32BLEClient' has no member named 'clientlock'
if (!xSemaphoreTake(this->clientlock, 20L / portTICK_PERIOD_MS)) {
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:362:66: error: 'xSemaphoreTake' was not declared in this scope
if (!xSemaphoreTake(this->clientlock, 20L / portTICK_PERIOD_MS)) {
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:388:23: error: 'class esphome::esp32_ble_client::ESP32BLEClient' has no member named 'clientlock'
xSemaphoreGive(this->clientlock);
^
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:388:35: error: 'xSemaphoreGive' was not declared in this scope
xSemaphoreGive(this->clientlock);
^
[/data/ble_gateway/.pioenvs/ble_gateway/src/esphome/components/meizu_ble/meizu_ble.cpp.o] Error 1
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp: At global scope:
src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:165:13: warning: 'void esphome::esp32_ble_client::print_uuid(esp_bt_uuid_t)' defined but not used [-Wunused-function]
static void print_uuid(esp_bt_uuid_t uuid) {
^
[/data/ble_gateway/.pioenvs/ble_gateway/src/esphome/components/esp32_ble_client/esp32_ble_client.cpp.o] Error 1
版本更新貌似无法使用了。大佬能修改下吗 In file included from src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:1:0: src/esphome/components/esp32_ble_client/esp32_ble_client.h:102:3: error: 'SemaphoreHandle_t' does not name a type SemaphoreHandle_t clientlock; ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp: In member function 'virtual void esphome::esp32_ble_client::ESP32BLEClient::setup()': src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:195:9: error: 'class esphome::esp32_ble_client::ESP32BLEClient' has no member named 'clientlock' this->clientlock = xSemaphoreCreateMutex(); ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:195:46: error: 'xSemaphoreCreateMutex' was not declared in this scope this->clientlock = xSemaphoreCreateMutex(); ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp: In static member function 'static bool esphome::esp32_ble_client::ESP32BLEClient::ble_setup()': src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:221:16: error: 'btStart' was not declared in this scope if (!btStart()) { ^ In file included from src/esphome/components/meizu_ble/meizu_ble.h:5:0, from src/esphome/components/meizu_ble/meizu_ble.cpp:1: src/esphome/components/esp32_ble_client/esp32_ble_client.h:102:3: error: 'SemaphoreHandle_t' does not name a type SemaphoreHandle_t clientlock; ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:250:12: error: 'delay' was not declared in this scope delay(200); ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp: In member function 'void esphome::esp32_ble_client::ESP32BLEClient::on_disconnected()': src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:289:12: error: 'delay' was not declared in this scope delay(1000); ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp: In member function 'void esphome::esp32_ble_client::ESP32BLEClient::next_task()': src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:299:32: error: 'class esphome::esp32_ble_client::ESP32BLEClient' has no member named 'clientlock' while (!xSemaphoreTake(this->clientlock, 20L / portTICK_PERIOD_MS)) { ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:299:70: error: 'xSemaphoreTake' was not declared in this scope while (!xSemaphoreTake(this->clientlock, 20L / portTICK_PERIOD_MS)) { ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:321:24: error: 'class esphome::esp32_ble_client::ESP32BLEClient' has no member named 'clientlock' xSemaphoreGive(this->clientlock); ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:321:36: error: 'xSemaphoreGive' was not declared in this scope xSemaphoreGive(this->clientlock); ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp: In member function 'void esphome::esp32_ble_client::ESP32BLEClient::connect(esphome::esp32_ble_client::ESPBTClientListener, uint64_t)': src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:326:28: error: 'class esphome::esp32_ble_client::ESP32BLEClient' has no member named 'clientlock' if (!xSemaphoreTake(this->clientlock, 20L / portTICK_PERIOD_MS)) { ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:326:66: error: 'xSemaphoreTake' was not declared in this scope if (!xSemaphoreTake(this->clientlock, 20L / portTICK_PERIOD_MS)) { ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:352:23: error: 'class esphome::esp32_ble_client::ESP32BLEClient' has no member named 'clientlock' xSemaphoreGive(this->clientlock); ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:352:35: error: 'xSemaphoreGive' was not declared in this scope xSemaphoreGive(this->clientlock); ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp: In member function 'void esphome::esp32_ble_client::ESP32BLEClient::connect_first(esphome::esp32_ble_client::ESPBTClientListener, uint64_t)': src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:362:28: error: 'class esphome::esp32_ble_client::ESP32BLEClient' has no member named 'clientlock' if (!xSemaphoreTake(this->clientlock, 20L / portTICK_PERIOD_MS)) { ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:362:66: error: 'xSemaphoreTake' was not declared in this scope if (!xSemaphoreTake(this->clientlock, 20L / portTICK_PERIOD_MS)) { ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:388:23: error: 'class esphome::esp32_ble_client::ESP32BLEClient' has no member named 'clientlock' xSemaphoreGive(this->clientlock); ^ src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:388:35: error: 'xSemaphoreGive' was not declared in this scope xSemaphoreGive(this->clientlock); ^ [/data/ble_gateway/.pioenvs/ble_gateway/src/esphome/components/meizu_ble/meizu_ble.cpp.o] Error 1 src/esphome/components/esp32_ble_client/esp32_ble_client.cpp: At global scope: src/esphome/components/esp32_ble_client/esp32_ble_client.cpp:165:13: warning: 'void esphome::esp32_ble_client::print_uuid(esp_bt_uuid_t)' defined but not used [-Wunused-function] static void print_uuid(esp_bt_uuid_t uuid) { ^ [/data/ble_gateway/.pioenvs/ble_gateway/src/esphome/components/esp32_ble_client/esp32_ble_client.cpp.o] Error 1