-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Compiling error: no match for 'operator+=' (operand types are 'String' and 'char [(<anonymous> + 1)]') #68
Comments
I am also facing the same issue. @mnour94 Do you find any solution? Here is the log of error:
|
Reverting https://github.com/esp8266/Arduino to 2.7.3 solved this issue for me |
C:\Users\m\Documents\Arduino\libraries\aws-mqtt-websockets-master\AWSWebSocketClient.cpp: In member function 'char* AWSWebSocketClient::generateAWSPath(uint16_t)':
C:\Users\m\Documents\Arduino\libraries\aws-mqtt-websockets-master\AWSWebSocketClient.cpp:210:16: error: no match for 'operator+=' (operand types are 'String' and 'char [( + 1)]')
210 | key_credential+=credentialScope;
In file included from C:\Users\maria\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/Arduino.h:286,
C:\Users\ma\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/WString.h:133:17: note: candidate: 'template String& String::operator+=(const T&)'
133 | String &operator +=(const T &rhs) {
C:\Users\m\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/WString.h:133:17: note: template argument deduction/substitution failed:
C:\Users\m\Documents\Arduino\libraries\aws-mqtt-websockets-master\AWSWebSocketClient.cpp:210:18: note: variable-sized array type 'char [( + 1)]' is not a valid template argument
210 | key_credential+=credentialScope;
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
The text was updated successfully, but these errors were encountered: