Is the https_request(get and post) simultaneously works on esp32..??
Posted: Thu Jun 15, 2017 7:58 am
Hi all, in my project , am reading the data from webserver using https_request(GET) example and if the read data is something like this(to power on the led ) and if the esp32 (power on the led) it will post an update to the webserver using https_request(POST)...but when am combining the GET and POST in my project , am getting something like this...
[0;32mI (6380) example: Connected to AP[0m
[0;32mI (6380) example: Connecting to xxxxx.com:443...[0m
[0;32mI (6660) example: Connected.[0m
[0;32mI (6660) example: Performing the SSL/TLS handshake...[0m
[0;32mI (10920) example: Verifying peer X.509 certificate...[0m
[0;33mW (10920) example: Failed to verify peer certificate![0m
[0;33mW (10920) example: verification info: ! The certificate is not correctly signed by the trusted CA
[0m
[0;32mI (10930) example: Writing HTTP request...[0m
[0;32mI (10940) example: 244 bytes written[0m
[0;32mI (10940) example: Reading HTTP response...[0m
[0;32mI (11180) example: 333 bytes read[0m
Header:
-------
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 15 Jun 2017 07:52:32 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 46
Connection: close
Access-Control-Allow-Origin: *
Cache-Control: no-cache
Strict-Transport-Security: max-age=31556926; includeSubDomains; preload
-------
[0;32mI (11200) example: JSON data received.[0m
[0;32mI (11200) example: parsing JSON data:[0m
pwr = on
[0;32mI (11210) example: led on.......... [0m
[0;32mI (11220) BT: Seeding the random number generator[0m
[0;32mI (11220) BT: Loading the CA root certificate...[0m
[0;32mI (11230) BT: Setting hostname for TLS session...[0m
[0;32mI (11230) BT: Setting up the SSL/TLS structure...[0m
[0;32mI (11240) BT: Connected to AP[0m
[0;32mI (11240) BT: Connecting to xxxxxxxx.com:443...[0m
[0;32mI (11490) BT: Connected.[0m
[0;32mI (11490) BT: Performing the SSL/TLS handshake...[0m
[0;32mI (13970) BT: Verifying peer X.509 certificate...[0m
[0;33mW (13970) BT: Failed to verify peer certificate![0m
[0;33mW (13970) BT: verification info: ! The certificate is not correctly signed by the trusted CA
[0m
[0;32mI (13980) BT: Writing HTTP request...[0m
[0;32mI (13990) BT: 379 bytes written[0m
[0;32mI (13990) BT: Reading HTTP response...[0m
[0;32mI (14220) BT: 317 bytes read[0m
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 15 Jun 2017 07:52:36 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 30
Connection: close
Access-Control-Allow-Origin: *
Cache-Control: no-cache
Strict-Transport-Security: max-age=31556926; includeSubDomains; preload
{
"www_status" : "online"
}
[0;32mI (14250) BT: connection closed[0m
[0;32mI (14350) example: Starting again![0m
[0;32mI (14350) example: Connected to AP[0m
[0;32mI (14350) example: Connecting to xxxxxxx.com:443...[0m
[0;32mI (14590) example: Connected.[0m
[0;32mI (14590) example: Performing the SSL/TLS handshake...[0m
I (15110) wifi: pm start, type:0
[0;32mI (17080) example: Verifying peer X.509 certificate...[0m
[0;33mW (17080) example: Failed to verify peer certificate![0m
[0;33mW (17080) example: verification info: ! The certificate is not correctly signed by the trusted CA
[0m
[0;32mI (17090) example: Writing HTTP request...[0m
[0;32mI (17090) example: 244 bytes written[0m
[0;32mI (17100) example: Reading HTTP response...[0m
[0;32mI (17560) example: 333 bytes read[0m
Header:
-------
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 15 Jun 2017 07:52:39 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 46
Connection: close
Access-Control-Allow-Origin: *
Cache-Control: no-cache
Strict-Transport-Security: max-age=31556926; includeSubDomains; preload
-------
[0;32mI (17580) example: JSON data received.[0m
[0;32mI (17580) example: parsing JSON data:[0m
pwr = on
[0;32mI (17590) example: led on.......... [0m
[0;32mI (17590) BT: free DRAM 20744 IRAM 45928[0m
[0;32mI (17600) BT: Seeding the random number generator[0m
[0;32mI (17600) BT: Loading the CA root certificate...[0m
[0;32mI (17610) BT: Setting hostname for TLS session...[0m
[0;32mI (17610) BT: Setting up the SSL/TLS structure...[0m
[0;31mE (17620) BT: mbedtls_ssl_setup returned -0x7f00
[0m
Guru Meditation Error of type StoreProhibited occurred on core 1. Exception was unhandled.
Register dump:
PC : 0x4000c46c PS : 0x00060030 A0 : 0x80163cff A1 : 0x3ffe6470
A2 : 0x00000000 A3 : 0x00000000 A4 : 0x0000414d A5 : 0x00000000
A6 : 0x3ffe6140 A7 : 0x00000414 A8 : 0x00000000 A9 : 0x00000000
A10 : 0x3ffce57c A11 : 0x3ffce524 A12 : 0x3ffe6364 A13 : 0x00000000
A14 : 0x00000004 A15 : 0xff000000 SAR : 0x00000004 EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000000 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0x00000413
Backtrace: 0x4000c46c:0x3ffe6470 0x40163cff:0x3ffe6480 0x40163dd8:0x3ffe64a0 0x401149e6:0x3ffe64c0 0x40114abe:0x3ffe6f20 0x4011514a:0x3ffe6f50
Rebooting...
am getting like this , after every https_request(GET), can anyone please say...where am made a mistake
Code: Select all
[0;32mI (6380) example: Connecting to xxxxx.com:443...[0m
[0;32mI (6660) example: Connected.[0m
[0;32mI (6660) example: Performing the SSL/TLS handshake...[0m
[0;32mI (10920) example: Verifying peer X.509 certificate...[0m
[0;33mW (10920) example: Failed to verify peer certificate![0m
[0;33mW (10920) example: verification info: ! The certificate is not correctly signed by the trusted CA
[0m
[0;32mI (10930) example: Writing HTTP request...[0m
[0;32mI (10940) example: 244 bytes written[0m
[0;32mI (10940) example: Reading HTTP response...[0m
[0;32mI (11180) example: 333 bytes read[0m
Header:
-------
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 15 Jun 2017 07:52:32 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 46
Connection: close
Access-Control-Allow-Origin: *
Cache-Control: no-cache
Strict-Transport-Security: max-age=31556926; includeSubDomains; preload
-------
[0;32mI (11200) example: JSON data received.[0m
[0;32mI (11200) example: parsing JSON data:[0m
pwr = on
[0;32mI (11210) example: led on.......... [0m
[0;32mI (11220) BT: Seeding the random number generator[0m
[0;32mI (11220) BT: Loading the CA root certificate...[0m
[0;32mI (11230) BT: Setting hostname for TLS session...[0m
[0;32mI (11230) BT: Setting up the SSL/TLS structure...[0m
[0;32mI (11240) BT: Connected to AP[0m
[0;32mI (11240) BT: Connecting to xxxxxxxx.com:443...[0m
[0;32mI (11490) BT: Connected.[0m
[0;32mI (11490) BT: Performing the SSL/TLS handshake...[0m
[0;32mI (13970) BT: Verifying peer X.509 certificate...[0m
[0;33mW (13970) BT: Failed to verify peer certificate![0m
[0;33mW (13970) BT: verification info: ! The certificate is not correctly signed by the trusted CA
[0m
[0;32mI (13980) BT: Writing HTTP request...[0m
[0;32mI (13990) BT: 379 bytes written[0m
[0;32mI (13990) BT: Reading HTTP response...[0m
[0;32mI (14220) BT: 317 bytes read[0m
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 15 Jun 2017 07:52:36 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 30
Connection: close
Access-Control-Allow-Origin: *
Cache-Control: no-cache
Strict-Transport-Security: max-age=31556926; includeSubDomains; preload
{
"www_status" : "online"
}
[0;32mI (14250) BT: connection closed[0m
[0;32mI (14350) example: Starting again![0m
[0;32mI (14350) example: Connected to AP[0m
[0;32mI (14350) example: Connecting to xxxxxxx.com:443...[0m
[0;32mI (14590) example: Connected.[0m
[0;32mI (14590) example: Performing the SSL/TLS handshake...[0m
I (15110) wifi: pm start, type:0
[0;32mI (17080) example: Verifying peer X.509 certificate...[0m
[0;33mW (17080) example: Failed to verify peer certificate![0m
[0;33mW (17080) example: verification info: ! The certificate is not correctly signed by the trusted CA
[0m
[0;32mI (17090) example: Writing HTTP request...[0m
[0;32mI (17090) example: 244 bytes written[0m
[0;32mI (17100) example: Reading HTTP response...[0m
[0;32mI (17560) example: 333 bytes read[0m
Header:
-------
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 15 Jun 2017 07:52:39 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 46
Connection: close
Access-Control-Allow-Origin: *
Cache-Control: no-cache
Strict-Transport-Security: max-age=31556926; includeSubDomains; preload
-------
[0;32mI (17580) example: JSON data received.[0m
[0;32mI (17580) example: parsing JSON data:[0m
pwr = on
[0;32mI (17590) example: led on.......... [0m
[0;32mI (17590) BT: free DRAM 20744 IRAM 45928[0m
[0;32mI (17600) BT: Seeding the random number generator[0m
[0;32mI (17600) BT: Loading the CA root certificate...[0m
[0;32mI (17610) BT: Setting hostname for TLS session...[0m
[0;32mI (17610) BT: Setting up the SSL/TLS structure...[0m
[0;31mE (17620) BT: mbedtls_ssl_setup returned -0x7f00
[0m
Guru Meditation Error of type StoreProhibited occurred on core 1. Exception was unhandled.
Register dump:
PC : 0x4000c46c PS : 0x00060030 A0 : 0x80163cff A1 : 0x3ffe6470
A2 : 0x00000000 A3 : 0x00000000 A4 : 0x0000414d A5 : 0x00000000
A6 : 0x3ffe6140 A7 : 0x00000414 A8 : 0x00000000 A9 : 0x00000000
A10 : 0x3ffce57c A11 : 0x3ffce524 A12 : 0x3ffe6364 A13 : 0x00000000
A14 : 0x00000004 A15 : 0xff000000 SAR : 0x00000004 EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000000 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0x00000413
Backtrace: 0x4000c46c:0x3ffe6470 0x40163cff:0x3ffe6480 0x40163dd8:0x3ffe64a0 0x401149e6:0x3ffe64c0 0x40114abe:0x3ffe6f20 0x4011514a:0x3ffe6f50
Rebooting...
am getting like this , after every https_request(GET), can anyone please say...where am made a mistake