--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
Dependency Graph
|-- ESPAsyncTCP-esphome @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 3.1.0
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- noise-c @ 0.1.4
|-- ArduinoJson @ 6.18.5
Compiling .pioenvs/ass/src/main.cpp.o
Compiling .pioenvs/ass/lib551/ESPAsyncTCP-esphome/ESPAsyncTCP.cpp.o
Compiling .pioenvs/ass/lib551/ESPAsyncTCP-esphome/ESPAsyncTCPbuffer.cpp.o
In file included from src/esphome/core/log.h:8,
from src/esphome/components/api/proto.h:4,
from src/esphome/components/api/api_pb2.h:5,
from src/esphome/components/api/api_connection.h:4,
from src/esphome.h:3,
from src/main.cpp:3:
src/my_custom_component.h: In member function 'bool MyCustomComponent::read_message()':
src/my_custom_component.h:19:30: error: initializer fails to determine size of '__pstr__'
19 | ESP_LOGD("DmsrCustom", data);
/data/cache/platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:39:76: note: in definition of macro 'FPSTR'
39 | #define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
| ^~~~~~~~~~~~
src/esphome/core/log.h:70:36: note: in expansion of macro 'F'
70 | #define ESPHOME_LOG_FORMAT(format) F(format)
| ^
src/esphome/core/log.h:95:59: note: in expansion of macro 'ESPHOME_LOG_FORMAT'
95 | esp_log_printf_(ESPHOME_LOG_LEVEL_DEBUG, tag, __LINE__, ESPHOME_LOG_FORMAT(format), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
src/esphome/core/log.h:152:28: note: in expansion of macro 'esph_log_d'
152 | #define ESP_LOGD(tag, ...) esph_log_d(tag, __VA_ARGS__)
| ^~~~~~~~~~
src/my_custom_component.h:19:7: note: in expansion of macro 'ESP_LOGD'
19 | ESP_LOGD("DmsrCustom", data);
| ^~~~~~~~
src/my_custom_component.h:19:30: error: array must be initialized with a brace-enclosed initializer
19 | ESP_LOGD("DmsrCustom", data);
/data/cache/platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:39:76: note: in definition of macro 'FPSTR'
39 | #define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
| ^~~~~~~~~~~~
src/esphome/core/log.h:70:36: note: in expansion of macro 'F'
70 | #define ESPHOME_LOG_FORMAT(format) F(format)
| ^
src/esphome/core/log.h:95:59: note: in expansion of macro 'ESPHOME_LOG_FORMAT'
95 | esp_log_printf_(ESPHOME_LOG_LEVEL_DEBUG, tag, __LINE__, ESPHOME_LOG_FORMAT(format), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~
src/esphome/core/log.h:152:28: note: in expansion of macro 'esph_log_d'
152 | #define ESP_LOGD(tag, ...) esph_log_d(tag, __VA_ARGS__)
| ^~~~~~~~~~
src/my_custom_component.h:19:7: note: in expansion of macro 'ESP_LOGD'
19 | ESP_LOGD("DmsrCustom", data);
| ^~~~~~~~
Compiling .pioenvs/ass/lib551/ESPAsyncTCP-esphome/SyncClient.cpp.o
*** [.pioenvs/ass/src/main.cpp.o] Error 1
========================= [FAILED] Took 14.08 seconds =========================
我折腾uart必定遇到这个 |