Hey, I get an error compiling this code. Esphome version: [v2022.11.5]
Error:
Generating LD script /data/slimmelezer/.pioenvs/slimmelezer/ld/local.eagle.app.v6.common.ld
Compiling /data/slimmelezer/.pioenvs/slimmelezer/liba46/ESPAsyncTCP-esphome/AsyncPrinter.cpp.o
Compiling /data/slimmelezer/.pioenvs/slimmelezer/liba46/ESPAsyncTCP-esphome/ESPAsyncTCP.cpp.o
/config/esphome/slimmelezer.yaml: In lambda function:
/config/esphome/slimmelezer.yaml:107:7: error: no matching function for call to 'P1Reader::P1Reader(esphome::uart::ESP8266UartComponent&, esphome::template_::TemplateNumber&, esphome::gpio::GPIOSwitch&, esphome::gpio::GPIOSwitch&, esphome::gpio::GPIOBinarySensor*&)'
107
);
^
In file included from src/main.cpp:70:
src/p1mini.h:35:3: note: candidate: 'P1Reader::P1Reader(unsigned int, esphome::uart::UARTComponent, esphome::gpio::GPIOSwitch, esphome::gpio::GPIOSwitch*)'
35
I get the feeling that you are combining the .h file from this project with the .yaml from another project. (Some parts of) The yaml must match the .h file for this to work...
Hey, I get an error compiling this code. Esphome version: [v2022.11.5]
Error:
~~~ src/p1mini.h:35:3: note: candidate expects 4 arguments, 5 provided src/p1mini.h:25:7: note: candidate: 'constexpr P1Reader::P1Reader(const P1Reader&)' 25~~~ src/p1mini.h:25:7: note: candidate expects 1 argument, 5 provided src/p1mini.h:25:7: note: candidate: 'constexpr P1Reader::P1Reader(P1Reader&&)' src/p1mini.h:25:7: note: candidate expects 1 argument, 5 provided /config/esphome/slimmelezer.yaml:136:7: error: could not convert '{Compiling /data/slimmelezer/.pioenvs/slimmelezer/liba46/ESPAsyncTCP-esphome/ESPAsyncTCPbuffer.cpp.o *** [/data/slimmelezer/.pioenvs/slimmelezer/src/main.cpp.o] Error 1