So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By sak
#65453 Please help me solve the problem. Thank you very much

the following line from sketch file.
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>

when call this line --> Line_Notify("PIR no1\nMotion detected"); it throw the following error.
/*---------------------------------------------------------------------
void Line_Notify(String message) {
WiFiClientSecure client;

if (!client.connect("notify-api.line.me", 443)) {
Serial.println("connection failed");
return;
}

String req = "";
req += "POST /api/notify HTTP/1.1\r\n";
req += "Host: notify-api.line.me\r\n";
req += "Authorization: Bearer " + String(LINE_TOKEN) + "\r\n";
req += "Cache-Control: no-cache\r\n";
req += "User-Agent: ESP8266\r\n";
req += "Content-Type: application/x-www-form-urlencoded\r\n";
req += "Content-Length: " + String(String("message=" + message).length()) + "\r\n";
req += "\r\n";
req += "message=" + message;
Serial.println(req);
client.print(req);
delay(2000);

Serial.println("-------------");
while (client.connected()) {
String line = client.readStringUntil('\n');
if (line == "\r") {
break;
}
Serial.println(line);
}
Serial.println("-------------");
}
/*------------------------------------------------------

Exception (29):
epc1=0x4000e1b2 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000004 depc=0x00000000

ctx: cont
sp: 3fff4640 end: 3fff4b90 offset: 01a0

>>>stack>>>
3fff47e0: 3fff3b50 00000cde 00000cde 4022d9f3
3fff47f0: 00000208 3fff9084 3fff8ee4 4022db8c
3fff4800: 00000104 000064e0 00000c9c 3fff9084
3fff4810: 00000040 00000082 3fffadec 4022de3e
3fff4820: 00800000 00000080 00000000 00000041
3fff4830: 00000040 0000003f 4020c8f0 00000041
3fff4840: 3fffb664 3fff9084 3fffadbc 3fff9574
3fff4850: 3fffbb78 ffffffff 3fff9084 3fff9084
3fff4860: 00000040 3fff9084 3fffadec 3fff9084
3fff4870: 00000040 3fff9084 3fffadec 4022e99a
3fff4880: 3fff9114 0000003f 0de3a90a 00000001
3fff4890: 3fff9084 3fffadd4 3fffadec 00000001
3fff48a0: 00000010 3fff9084 0000000f 4022ebf5
3fff48b0: 3fffadbc 3fff9354 0000000f 00000001
3fff48c0: 00000001 3fff936c 3fff6f17 4022da58
3fff48d0: 00000100 3fff90e4 3fff6ee7 00000000
3fff48e0: 00000100 3fff90e4 3fff6ee7 4022fc81
3fff48f0: 3fff4920 00000000 000000d0 00000030
3fff4900: afa4d865 86f2dacf 83a7c5e6 00000004
3fff4910: 00000004 3fff6e24 3fff6ee1 4022bd8c
3fff4920: ffe60203 57309568 576f78fa 91b68ea8
3fff4930: 05123f02 21045f36 80454672 f389556c
3fff4940: 127da151 b8d54521 68803708 d86595a4
3fff4950: 00000004 3fff7c0d 3fff6e24 4022c18d
3fff4960: 2f849286 fad519f3 857621e3 7f63f0a7
3fff4970: 31fe6948 2d44176f de154f01 8614ce0d
3fff4980: 97fb7745 3fff7c0d 3fff89cc 00000c40
3fff4990: 00000ce6 3fff7bd4 00000038 00000004
3fff49a0: 3fff6e24 3fff7c0d 00000004 00000004
3fff49b0: 00000004 3fff7c0d 3fff6e24 4022bb84
3fff49c0: 00000000 3fff6ee1 3fff6e24 4022bf2c
3fff49d0: 00000012 3ffeb7ac 00000013 401004d8
3fff49e0: 3fff4a30 0000000e 00000010 00000000
3fff49f0: 3fff6154 3ffeb7ac 3fff6e24 01000000
3fff4a00: 3fff4a30 3fff4a80 3fff6e24 4022bcdc
3fff4a10: 40207f64 00000001 3fff3b70 00001387
3fff4a20: 0002d1ca 3fff4a80 3fff61a4 40208525
3fff4a30: 000001bb 3fff6cf4 3fff4a80 4020798e
3fff4a40: ae8a68cb 3fff4b22 3ffebf46 3fff365c
3fff4a50: 000001bb 3fff4a80 3ffeb7ac 40208735
3fff4a60: 3ffec2b0 ae8a68cb 3ffec2b0 ae8a68cb
3fff4a70: 3fff4b10 3fff36a8 3fff37cc 40206cc9
3fff4a80: 3ffeba90 00000000 000003e8 00000181
3fff4a90: 3fff2ccc 3fff6a3c 3fff61a4 3fff365c
3fff4aa0: 00000020 3fff4b10 3fff4b10 4020d394
3fff4ab0: 3ffeb8ec 00000017 3fff4b10 4020d3e3
3fff4ac0: 3fff3b50 00000177 3fff4b10 4020d415
3fff4ad0: 0000f3b5 3fff36a8 3fff4b10 4020d466
3fff4ae0: 3ffeb8ec 3fff36a8 3fff37cc 3fff365c
3fff4af0: 0000f3b5 3fff36a8 3fff37cc 402070a4
3fff4b00: 3ffec2b0 00ffffff 3ffec2b0 0101a8c0
3fff4b10: 3fff661c 0000001f 00000017 343a3230
3fff4b20: 35353a38 00ffff00 3ffec2b0 0101a8c0
3fff4b30: 00000000 00000000 00000000 00000000
3fff4b40: 00000000 00000000 000000a8 00000001
3fff4b50: 3fff3664 feefeffe feefeffe feefeffe
3fff4b60: feefeffe feefeffe feefeffe 3fff3b5c
3fff4b70: 3fffdad0 00000000 3fff3b54 4020c93c
3fff4b80: feefeffe feefeffe 3fff3b70 40100718
<<<stack<<<


Decoding 26 results
0x4022d9f3: regular_multiply at /Users/igrokhotkov/e/axtls/e1/crypto/bigint.c line 859
0x4022db8c: bi_import at /Users/igrokhotkov/e/axtls/e1/crypto/bigint.c line 624
0x4022de3e: regular_square at /Users/igrokhotkov/e/axtls/e1/crypto/bigint.c line 950
: (inlined by) bi_square at /Users/igrokhotkov/e/axtls/e1/crypto/bigint.c line 1014
0x4020c8f0: ~HardwareSerial at C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/HardwareSerial.h line 71
: (inlined by) __static_initialization_and_destruction_0 at C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/HardwareSerial.cpp line 196
: (inlined by) _GLOBAL__sub_D__ZN14HardwareSerialC2Ei at C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/HardwareSerial.cpp line 197
0x4022e99a: ax_hmac_sha1 at /Users/igrokhotkov/e/axtls/e1/crypto/hmac.c line 80
0x4022ebf5: MD5Transform at /Users/igrokhotkov/e/axtls/e1/crypto/md5.c line 198
0x4022da58: bi_add at /Users/igrokhotkov/e/axtls/e1/crypto/bigint.c line 277
0x4022fc81: SHA256_Process at /Users/igrokhotkov/e/axtls/e1/crypto/sha256.c line 135
0x4022bd8c: process_client_key_xchg at /Users/igrokhotkov/e/axtls/e1/ssl/tls1_svr.c line 389
0x4022c18d: x509_free at /Users/igrokhotkov/e/axtls/e1/ssl/x509.c line 294
0x4022bb84: process_server_hello at /Users/igrokhotkov/e/axtls/e1/ssl/tls1_clnt.c line 311
: (inlined by) do_clnt_handshake at /Users/igrokhotkov/e/axtls/e1/ssl/tls1_clnt.c line 89
0x4022bf2c: process_client_hello at /Users/igrokhotkov/e/axtls/e1/ssl/tls1_svr.c line 165
: (inlined by) do_svr_handshake at /Users/igrokhotkov/e/axtls/e1/ssl/tls1_svr.c line 79
0x401004d8: malloc at C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266\umm_malloc/umm_malloc.c line 1664
0x4022bcdc: process_cert_verify at /Users/igrokhotkov/e/axtls/e1/ssl/tls1_svr.c line 447
0x40207f64: WiFiClientSecure::connected() at C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClientSecure.cpp line 517
0x40208525: FunctionRequestHandler::canHandle(HTTPMethod, String) at C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src\detail/RequestHandlersImpl.h line 53
0x4020798e: WiFiClient::WiFiClient(ClientContext*) at C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.cpp line 149
0x40208735: ESP8266WebServer::hasArg(String) at C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WebServer\src\detail/RequestHandlersImpl.h line 53
0x40206cc9: loop at C:\Users\Administrator\AppData\Local\Temp\VMBuilds\atest\esp8266_nodemcuv2\Debug/atest.cpp line 2828
0x4020d394: String::concat(char const*) at C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.cpp line 720
0x4020d3e3: operator+(StringSumHelper const&, String const&) at C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.cpp line 720
0x4020d415: operator+(StringSumHelper const&, char const*) at C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.cpp line 720
0x4020d466: String::compareTo(String const&) const at C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.cpp line 720
0x402070a4: std::_List_iterator >::operator++() at c:\users\administrator\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2/functional line 1954
: (inlined by) ESP8266WiFiGenericClass::_eventCallback(void*) at C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiGeneric.cpp line 219
0x4020c93c: IPAddress::printTo(Print&) const at C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/IPAddress.cpp line 87
0x40100718: cont_norm at C:\Users\Administrator\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/cont.S line 109
You do not have the required permissions to view the files attached to this post.