Closed steeeeeeved closed 6 years ago
Debug exception reason: Stack canary watchpoint triggered
Out of stack....
try move these lines to setup():
client.setCACert(test_ca_cert);
client.setCertificate(certificateBuff);
client.setPrivateKey(privateKeyBuff);
Edit: Let me try understand: looks like you will put it in deep sleep and wake up every 10 minutes... then read DHT sensor and send once (or how many times?) to AWS IoT via HTTPS and sleep again That's right?
Moving the three lines gives the same out of stack error.. (Thanks for identifying that for me, I'll get googling about workarounds/fixing)
Hi, Yes thats what I'm looking to do.. (Using a HiGrow temp / moisture sensor board) So tracing back, I did not have the latest checkout of arduinio-esp32 and was missing the increase in stack size: https://github.com/espressif/arduino-esp32/commit/4495659ac53bcdc4f8e59d6918b3e472903d63a7#diff-9b0caa90c75b300921be10a08d10ff95
Thanks for pointing me in the right direction.
Hardware:
Board: Wemos ESP32 Dev Board Core Installation/update date: 30/10/2017 IDE name: Arduino IDE Flash Frequency: 80Mhz Upload Speed: 115200
Description:
Intermittent problems connecting to AWS IOT via HTTPS calls using WifiSecure and TLS Certificates. When attempting to connect tot he AWS IOT endpoint with x509 certificates (which have been redacted in sample code), it fails about 80% of the time.
Yesterday I updated the version of the https://github.com/espressif/arduino-esp32 to latest master, from a version several months old (I dont have an exact date unfortunately). This code was working successfully previously.
Resetting the board will occasionally allow the HTTP POST to complete, where there will be anything from 1 to 5 successful posts, before the crash.
(Apologies if i have missed something easy!)
Sketch:
Debug Messages: