Merge pull request #1014 from urish/patch-1
Fix secure TCP connections for `net` and `mqtt` modules.
This commit is contained in:
commit
25585672ae
|
@ -821,6 +821,7 @@ static sint8 socket_connect(struct espconn *pesp_conn)
|
|||
#ifdef CLIENT_SSL_ENABLE
|
||||
if(mud->secure)
|
||||
{
|
||||
espconn_secure_set_size(ESPCONN_CLIENT, 5120); /* set SSL buffer size */
|
||||
espconn_status = espconn_secure_connect(pesp_conn);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -594,6 +594,7 @@ static void socket_connect(struct espconn *pesp_conn)
|
|||
{
|
||||
#ifdef CLIENT_SSL_ENABLE
|
||||
if(nud->secure){
|
||||
espconn_secure_set_size(ESPCONN_CLIENT, 5120); /* set SSL buffer size */
|
||||
espconn_secure_connect(pesp_conn);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue