odelot / aws-mqtt-websockets

Implementation of a middleware to use AWS MQTT service through websockets, aiming the ESP8266 plataform
GNU Lesser General Public License v3.0
231 stars 67 forks source link

ESP32 supported? #43

Open tonymande opened 5 years ago

tonymande commented 5 years ago

Hi, I enjoyed using this library on ESP8266 for a while now. Worked like charm. Now i tried to make it work on an ESP32, unfortunately there is always an exception when trying to connect to AWS. Could you pinpoint where the problem is?

6450 - conn: 1 - (223004)
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x400de9e0  PS      : 0x00060e30  A0      : 0x800dfab8  A1      : 0x3ffb1890  
A2      : 0x3ffccd18  A3      : 0x3ffccd38  A4      : 0x000000fe  A5      : 0x00000000  
A6      : 0x00ff0000  A7      : 0x0000003e  A8      : 0x800df9d9  A9      : 0x3ffb18a0  
A10     : 0xfefefefe  A11     : 0x3f403cc4  A12     : 0x00000002  A13     : 0x0000ff00  
A14     : 0x00ff0000  A15     : 0xff000000  SAR     : 0x0000000a  EXCCAUSE: 0x0000001c  
EXCVADDR: 0xfefefefe  LBEG    : 0x4000c46c  LEND    : 0x4000c477  LCOUNT  : 0x00000000  

Backtrace: 0x400de9e0:0x3ffb1890 0x400dfab5:0x3ffb18b0 0x400e0c2e:0x3ffb18d0 0x400d5814:0x3ffb1920 0x400d59de:0x3ffb19a0 0x400d4239:0x3ffb19d0 0x4014efde:0x3ffb1fa0
0x400de9e0: WebSocketsClient::clientDisconnect(WSclient_t*) at WString.h line 47
0x400de9e0: WebSocketsClient::clientDisconnect(WSclient_t*) at WString.h line 47
0x400dfab5: AWSWebSocketClient::stop() at AWSWebSocketClient.cpp line 526
0x400e0c2e: AWSWebSocketClient::connect(char const*, unsigned short) at AWSWebSocketClient.cpp line 526
0x400d5814: IPStack::connect(char*, int) at awsIot.cpp line 153
:  (inlined by) AwsIotClient::connect() at awsIot.cpp line 58
0x400d59de: AwsIotClient::init(FP ) at awsIot.cpp line 153
0x400d4239: setup() at CoffeemakerPS.ino line 130 (discriminator 5)
0x4014efde: loopTask(void*) at main.cpp line 15

Kind regards David