In file included from /root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Arduino.h:261:0,
from src/esphome/core/component.h:5,
from src/esphome/components/api/api_connection.h:3,
from src/esphome.h:2,
from src/main.cpp:3:
src/ttlsensors.h: In member function 'virtual void TTLSensor::loop()':
/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:39:34: error: initializer fails to determine size of '__c'
#define F(string_literal) (FPSTR(PSTR(string_literal)))
^
/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:38:76: note: in definition of macro 'FPSTR'
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
^
src/esphome/core/log.h:63:36: note: in expansion of macro 'F'
#define ESPHOME_LOG_FORMAT(format) F(format)
^
src/esphome/core/log.h:88:59: note: in expansion of macro 'ESPHOME_LOG_FORMAT'
esp_log_printf_(ESPHOME_LOG_LEVEL_DEBUG, tag, __LINE__, ESPHOME_LOG_FORMAT(format), ##__VA_ARGS__)
^
src/esphome/core/log.h:148:28: note: in expansion of macro 'esph_log_d'
#define ESP_LOGD(tag, ...) esph_log_d(tag, __VA_ARGS__)
^
src/ttlsensors.h:114:5: note: in expansion of macro 'ESP_LOGD'
ESP_LOGD("TTLSensor", topic.c_str());
^
/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:39:34: error: array must be initialized with a brace-enclosed initializer
#define F(string_literal) (FPSTR(PSTR(string_literal)))
^
/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/WString.h:38:76: note: in definition of macro 'FPSTR'
#define FPSTR(pstr_pointer) (reinterpret_cast<const __FlashStringHelper *>(pstr_pointer))
^
src/esphome/core/log.h:63:36: note: in expansion of macro 'F'
#define ESPHOME_LOG_FORMAT(format) F(format)
^
src/esphome/core/log.h:88:59: note: in expansion of macro 'ESPHOME_LOG_FORMAT'
esp_log_printf_(ESPHOME_LOG_LEVEL_DEBUG, tag, __LINE__, ESPHOME_LOG_FORMAT(format), ##__VA_ARGS__)
^
src/esphome/core/log.h:148:28: note: in expansion of macro 'esph_log_d'
#define ESP_LOGD(tag, ...) esph_log_d(tag, __VA_ARGS__)
^
src/ttlsensors.h:114:5: note: in expansion of macro 'ESP_LOGD'
ESP_LOGD("TTLSensor", topic.c_str());
^
*** [.pioenvs/esps32/src/main.cpp.o] Error 1
========================== [FAILED] Took 7.70 seconds ==========================