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

Error compiling on ESP-12E #24

Open
bwjm19 opened this issue Nov 24, 2021 · 2 comments
Open

Error compiling on ESP-12E #24

bwjm19 opened this issue Nov 24, 2021 · 2 comments

Comments

@bwjm19
Copy link

bwjm19 commented Nov 24, 2021

I am facing a problem when i compile the coapserver.ino. These are the errors. Appreciate if anyone can guide me the direction

C:\Users\user\Documents\Arduino\libraries\ESP-CoAP-master\coap_server.cpp: In member function 'bool coapServer::loop()':
C:\Users\user\Documents\Arduino\libraries\ESP-CoAP-master\coap_server.cpp:186:11: error: no match for 'operator+=' (operand types are 'String' and 'char [(((int)request->coapPacket::options[i].coapOption::length) + 1)]')
186 | url += urlname;
| ~~~~^~~~~~~~~~
In file included from C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1\cores\esp8266/Arduino.h:286,
from C:\Users\user\Documents\Arduino\libraries\ESP-CoAP-master\coap_server.h:14,
from C:\Users\user\Documents\Arduino\libraries\ESP-CoAP-master\coap_server.cpp:11:
C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1\cores\esp8266/WString.h:133:17: note: candidate: 'template String& String::operator+=(const T&)'
133 | String &operator +=(const T &rhs) {
| ^~~~~~~~
C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.1\cores\esp8266/WString.h:133:17: note: template argument deduction/substitution failed:
C:\Users\user\Documents\Arduino\libraries\ESP-CoAP-master\coap_server.cpp:186:14: note: variable-sized array type 'char [(((int)request->coapPacket::options[i].coapOption::length) + 1)]' is not a valid template argument
186 | url += urlname;
| ^~~~~~~
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

@Cecchellone
Copy link

Same here

@Ochoalog
Copy link

Ochoalog commented Jul 7, 2022

Same here too!

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