Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ошибка ESP8266WebServer #14

Open
immortalserg opened this issue Apr 29, 2019 · 2 comments
Open

Ошибка ESP8266WebServer #14

immortalserg opened this issue Apr 29, 2019 · 2 comments

Comments

@immortalserg
Copy link

immortalserg commented Apr 29, 2019

/home/user/arduinoide/arduino-1.8.8/portable/sketchbook/rgb/MQTTDDNS.ino: In function 'void initDDNS()':
MQTTDDNS:105:11: error: use of deleted function 'ESP8266WebServer& ESP8266WebServer::operator=(const ESP8266WebServer&)'
HTTPWAN = ESP8266WebServer (jsonReadtoInt(configSetup, "ddnsPort"));
^
In file included from /home/user/arduinoide/arduino-1.8.8/portable/sketchbook/rgb/rgb.ino:2:0:
/home/user/arduinoide/arduino-1.8.8/portable/packages/esp8266/hardware/esp8266/2.5.0/libraries/ESP8266WebServer/src/ESP8266WebServer.h:70:7: note: 'ESP8266WebServer& ESP8266WebServer::operator=(const ESP8266WebServer&)' is implicitly deleted because the default definition would be ill-formed:
class ESP8266WebServer
^
/home/user/arduinoide/arduino-1.8.8/portable/packages/esp8266/hardware/esp8266/2.5.0/libraries/ESP8266WebServer/src/ESP8266WebServer.h:70:7: error: use of deleted function 'std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = HTTPUpload; _Dp = std::default_delete]'
In file included from /home/user/arduinoide/arduino-1.8.8/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/c++/4.8.2/memory:81:0,
from /home/user/arduinoide/arduino-1.8.8/portable/packages/esp8266/hardware/esp8266/2.5.0/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.h:28,
from /home/user/arduinoide/arduino-1.8.8/portable/packages/esp8266/hardware/esp8266/2.5.0/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h:28,
from /home/user/arduinoide/arduino-1.8.8/portable/packages/esp8266/hardware/esp8266/2.5.0/libraries/ESP8266WiFi/src/ESP8266WiFi.h:34,
from /home/user/arduinoide/arduino-1.8.8/portable/sketchbook/rgb/rgb.ino:1:
/home/user/arduinoide/arduino-1.8.8/portable/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/c++/4.8.2/bits/unique_ptr.h:274:19: error: declared here
unique_ptr& operator=(const unique_ptr&) = delete;
^
exit status 1
use of deleted function 'ESP8266WebServer& ESP8266WebServer::operator=(const ESP8266WebServer&)'

@immortalserg immortalserg changed the title Нет в новом ядре ESP8266WebServer Ошибка ESP8266WebServer Apr 29, 2019
@renat2985
Copy link
Owner

Используйте готовые bin файлы. Которые можно скачать на главной странице репозитория.

@tretyakovsa
Copy link
Collaborator

@immortalserg Это от того что вы используете среду выше 2.3.0.
HTTPWAN = ESP8266WebServer (jsonReadtoInt(configSetup, "ddnsPort"));
Не работает в 2.4.0 и выше.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants