I was making a HTTPS POST request
HTTP.query({
url: 'https://mdash.net/api/v2/devices/device2?access_token=xxxxxxxxxxx',
headers: { 'Content-Type': 'application/json' },
data: mdata, // { shadow: { state: { desired: { built_in: boolean}}}}
cert: 'cert.pem', // client certificate // just left it if you dont have this file
key: 'key.pem', // client key //just left if you dont has this file
ca_cert: 'ca.pem', // ca bundle to verify server with ""
success: function (body, full_http_msg) { print("body"); },
error: function (err) { print(err); }
});
sometime my device show this in serial monitor and ESP8266 automatically restarted:
[Sep 10 12:24:50.827] E:M 264 (34 blocks)
[Sep 10 12:24:50.827]
[Sep 10 12:24:50.827] Exception 29 @ 0x4000e1b2, vaddr 0x00000000
[Sep 10 12:24:50.828] A0: 0x40297617 A1: 0x3ffff1c0 A2: 0x00000000 A3: 0x00000000
[Sep 10 12:24:50.828] A4: 0x00000108 A5: 0x00000000 A6: 0x00000100 A7:
0x00000010
[Sep 10 12:24:50.836] A8: 0x3ffe83cc A9: 0x00000190 A10: 0x00000000 A11:
0x0000007c
[Sep 10 12:24:50.844] A12: 0x00000000 A13: 0x00000108 A14: 0x00000003 A15:
0x3ffff250
[Sep 10 12:24:50.853]
[Sep 10 12:24:50.853] (exc SP: 0x3ffff020)
[Sep 10 12:24:50.853]
[Sep 10 12:24:50.853] --- BEGIN CORE DUMP ---
[Sep 10 12:24:50.853] mos: catching core dump
[Sep 10 12:24:53.688] ....
[Sep 10 12:25:02.396] ---- END CORE DUMP ----
it created a dump file and it look like this:
--- BEGIN CORE DUMP ---
{"app": "app2", "arch": "esp8266", "version": "1.0", "build_id": "20190910-065332", "build_image": "docker.io/mgos/esp8266-build:2.2.1-1.5.0-r5",
"REGS": {"addr": 1073737920, "data": "
F3YpQDDy/z8AAAAAAAAAABQCAAAAAAAAEAIAACEAAADMg/4/kAEAAAAAAAB8AAAAAAAAABQCAAAAAAAAnCb/P7LhAEAIAAAAAAAAAAAAAAAAAAAAMAAAAA==", "crc32": 2733548080},
"DRAM": {"addr": 1073643520, "data": "SOME_VERY_LONG_DATA", "crc32": 4074477429}}
---- END CORE DUMP ----
“SOME_VERY_LONG_DATA”==> it is a a base64 encoded and it is very long so i delete it and renamed to this,so that the message is shorter.