Comments (2)
I am also facing the same issue. @mnour94 Do you find any solution?
Arduino Version: 1.8.19 (Windows Store 1.8.57.0)
Here is the log of error:
Compiling library "aws-mqtt-websockets-1.3.0"
"C:\Users\user\Documents\ArduinoData\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.3-gcc10.3-9bcba0b/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE "-IC:\Users\user\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.1/tools/sdk/include" "-IC:\Users\user\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.1/tools/sdk/lwip2/include" "-IC:\Users\user\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.1/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\user\AppData\Local\Temp\arduino_build_368431/core" -c -w -Werror=return-type -Os -g -free -fipa-pta -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10819 -DARDUINO_ESP8266_NODEMCU_ESP12E -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD="ESP8266_NODEMCU_ESP12E"" -DLED_BUILTIN=2 -DFLASHMODE_DIO -DESP8266 "-IC:\Users\user\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.1\cores\esp8266" "-IC:\Users\user\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.1\variants\nodemcu" "-IC:\Users\user\Documents\Arduino\libraries\aws-sdk-arduino-master" "-IC:\Users\user\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.1\libraries\ESP8266WiFi\src" "-IC:\Users\user\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.1\libraries\Hash\src" "-IC:\Users\user\Documents\Arduino\libraries\PubSubClient\src" "-IC:\Users\user\Documents\Arduino\libraries\aws-mqtt-websockets-1.3.0" "-IC:\Users\user\Documents\Arduino\libraries\arduinoWebSockets-2.2.0\src" "C:\Users\user\Documents\Arduino\libraries\aws-mqtt-websockets-1.3.0\AWSWebSocketClient.cpp" -o "C:\Users\user\AppData\Local\Temp\arduino_build_368431\libraries\aws-mqtt-websockets-1.3.0\AWSWebSocketClient.cpp.o"
C:\Users\user\Documents\Arduino\libraries\aws-mqtt-websockets-1.3.0\AWSWebSocketClient.cpp: In member function 'char* AWSWebSocketClient::generateAWSPath(uint16_t)':
C:\Users\user\Documents\Arduino\libraries\aws-mqtt-websockets-1.3.0\AWSWebSocketClient.cpp:209:16: error: no match for 'operator+=' (operand types are 'String' and 'char [( + 1)]')
209 | key_credential+=credentialScope;
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from C:\Users\user\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.1\cores\esp8266/Arduino.h:286,
from C:\Users\user\Documents\Arduino\libraries\aws-mqtt-websockets-1.3.0\AWSWebSocketClient.h:4,
from C:\Users\user\Documents\Arduino\libraries\aws-mqtt-websockets-1.3.0\AWSWebSocketClient.cpp:1:
C:\Users\user\Documents\ArduinoData\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\Documents\ArduinoData\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\aws-mqtt-websockets-1.3.0\AWSWebSocketClient.cpp:209:18: note: variable-sized array type 'char [( + 1)]' is not a valid template argument
209 | key_credential+=credentialScope;
| ^~~~~~~~~~~~~~~
Using library aws-sdk-arduino-master in folder: C:\Users\user\Documents\Arduino\libraries\aws-sdk-arduino-master (legacy)
Using library ESP8266WiFi at version 1.0 in folder: C:\Users\user\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.1\libraries\ESP8266WiFi
Using library Hash at version 1.0 in folder: C:\Users\user\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.1\libraries\Hash
Using library PubSubClient at version 2.8 in folder: C:\Users\user\Documents\Arduino\libraries\PubSubClient
Using library aws-mqtt-websockets-1.3.0 in folder: C:\Users\user\Documents\Arduino\libraries\aws-mqtt-websockets-1.3.0 (legacy)
Using library arduinoWebSockets-2.2.0 at version 2.2.0 in folder: C:\Users\user\Documents\Arduino\libraries\arduinoWebSockets-2.2.0
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
from aws-mqtt-websockets.
Reverting https://github.com/esp8266/Arduino to 2.7.3 solved this issue for me
from aws-mqtt-websockets.
Related Issues (20)
- undefined reference to 'gmtime_r' in Stream.h and AWSWebSocketClient.h HOT 1
- Not seeing aws subscribed messages
- Fatal exception 3(LoadStoreErrorCause) with NodeMCU
- How can I publish a command to esp8266 from AWS? HOT 1
- pubsubclient sample cannot compile cannot declare variable 'awsWSclient' to be of abstract type 'AWSWebSocketClient' HOT 11
- Incompatibility with TimeLib 1.5
- While Using PubSub Example reconnections are still Happening every 5 secs
- Putting a private key on the device represents a HUGE security flaw HOT 4
- Eratic connection HOT 1
- Callback function doesn't execute while sub on get/accepted shadow HOT 1
- Using SessionToken to connect to AWS IoT Core
- ESP8266 AWS web socket connection fails because of BearSSL HOT 3
- Connection failed because of inproper initialization HOT 4
- How to connect by certificates instead of aws_key and aws_secret HOT 5
- Exception 3: LoadStoreError: Processor internal physical address or data error during load or store HOT 2
- 403 forbidden response from aws while handshake
- Exception 28 error HOT 2
- Unable to compile HOT 2
- Max payload size is 100 char
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-mqtt-websockets.