-
Notifications
You must be signed in to change notification settings - Fork 25
Description
In file included from src/esphome/components/ddp/ddp.cpp:3: src/esphome/components/ddp/ddp.h:44:19: error: 'WiFiUDP' was not declared in this scope 44 | std::unique_ptr<WiFiUDP> udp_; | ^~~~~~~ src/esphome/components/ddp/ddp.h:44:26: error: template argument 1 is invalid 44 | std::unique_ptr<WiFiUDP> udp_; | ^ src/esphome/components/ddp/ddp.h:44:26: error: template argument 2 is invalid In file included from src/esphome/components/ddp/ddp_addressable_light_effect.cpp:3: src/esphome/components/ddp/ddp.h:44:19: error: 'WiFiUDP' was not declared in this scope 44 | std::unique_ptr<WiFiUDP> udp_; | ^~~~~~~ src/esphome/components/ddp/ddp.h:44:26: error: template argument 1 is invalid 44 | std::unique_ptr<WiFiUDP> udp_; | ^ src/esphome/components/ddp/ddp.h:44:26: error: template argument 2 is invalid src/esphome/components/ddp/ddp.cpp: In member function 'virtual void esphome::ddp::DDPComponent::loop()': src/esphome/components/ddp/ddp.cpp:23:43: error: base operand of '->' is not a pointer 23 | while (uint16_t packet_size = this->udp_->parsePacket()) { | ^~ src/esphome/components/ddp/ddp.cpp:26:20: error: base operand of '->' is not a pointer 26 | if (!this->udp_->read(&payload[0], payload.size())) { | ^~ src/esphome/components/ddp/ddp.cpp: In member function 'void esphome::ddp::DDPComponent::add_effect(esphome::ddp::DDPLightEffectBase*)': src/esphome/components/ddp/ddp.cpp:46:49: error: 'WiFiUDP' was not declared in this scope 46 | if (!this->udp_) { this->udp_ = make_unique<WiFiUDP>(); } | ^~~~~~~ src/esphome/components/ddp/ddp.cpp:46:57: error: no matching function for call to 'make_unique<<expression error> >()' 46 | if (!this->udp_) { this->udp_ = make_unique<WiFiUDP>(); } | ~~~~~~~~~~~~~~~~~~~~^~ In file included from /data/cache/platformio/packages/toolchain-rp2040-earlephilhower/arm-none-eabi/include/c++/12.3.0/memory:75, from src/esphome/components/ddp/ddp.h:22: /data/cache/platformio/packages/toolchain-rp2040-earlephilhower/arm-none-eabi/include/c++/12.3.0/bits/unique_ptr.h:1089:5: note: candidate: 'template<class _Tp, class ... _Args> std::__detail::__invalid_make_unique_t<_Tp> std::make_unique(_Args&& ...)' (deleted) 1089 | make_unique(_Args&&...) = delete; | ^~~~~~~~~~~ /data/cache/platformio/packages/toolchain-rp2040-earlephilhower/arm-none-eabi/include/c++/12.3.0/bits/unique_ptr.h:1089:5: note: template argument deduction/substitution failed: src/esphome/components/ddp/ddp.cpp:46:57: error: template argument 1 is invalid 46 | if (!this->udp_) { this->udp_ = make_unique<WiFiUDP>(); } | ~~~~~~~~~~~~~~~~~~~~^~ /data/cache/platformio/packages/toolchain-rp2040-earlephilhower/arm-none-eabi/include/c++/12.3.0/bits/unique_ptr.h:1079:5: note: candidate: 'template<class _Tp> std::__detail::__unique_ptr_array_t<_Tp> std::make_unique(size_t)' 1079 | make_unique(size_t __num) | ^~~~~~~~~~~ /data/cache/platformio/packages/toolchain-rp2040-earlephilhower/arm-none-eabi/include/c++/12.3.0/bits/unique_ptr.h:1079:5: note: candidate expects 1 argument, 0 provided /data/cache/platformio/packages/toolchain-rp2040-earlephilhower/arm-none-eabi/include/c++/12.3.0/bits/unique_ptr.h:1064:5: note: candidate: 'template<class _Tp, class ... _Args> std::__detail::__unique_ptr_t<_Tp> std::make_unique(_Args&& ...)' 1064 | make_unique(_Args&&... __args) | ^~~~~~~~~~~ /data/cache/platformio/packages/toolchain-rp2040-earlephilhower/arm-none-eabi/include/c++/12.3.0/bits/unique_ptr.h:1064:5: note: template argument deduction/substitution failed: src/esphome/components/ddp/ddp.cpp:46:57: error: template argument 1 is invalid 46 | if (!this->udp_) { this->udp_ = make_unique<WiFiUDP>(); } | ~~~~~~~~~~~~~~~~~~~~^~ src/esphome/components/ddp/ddp.cpp:49:20: error: base operand of '->' is not a pointer 49 | if (!this->udp_->begin(PORT)) { | ^~ src/esphome/components/ddp/ddp.cpp: In member function 'void esphome::ddp::DDPComponent::remove_effect(esphome::ddp::DDPLightEffectBase*)': src/esphome/components/ddp/ddp.cpp:68:15: error: base operand of '->' is not a pointer 68 | this->udp_->stop(); | ^~ *** [.pioenvs/esphome-web-05a1d1/src/esphome/components/ddp/ddp.cpp.o] Error 1 *** [.pioenvs/esphome-web-05a1d1/src/esphome/components/ddp/ddp_addressable_light_effect.cpp.o] Error 1