Fix secure MQTT connections
Call `espconn_secure_set_size()` before calling `espconn_secure_connect()`, similar to how the http module works
This commit is contained in:
parent
ce498462f7
commit
31a62a9eb1
|
@ -821,6 +821,7 @@ static sint8 socket_connect(struct espconn *pesp_conn)
|
||||||
#ifdef CLIENT_SSL_ENABLE
|
#ifdef CLIENT_SSL_ENABLE
|
||||||
if(mud->secure)
|
if(mud->secure)
|
||||||
{
|
{
|
||||||
|
espconn_secure_set_size(ESPCONN_CLIENT, 5120); /* set SSL buffer size */
|
||||||
espconn_status = espconn_secure_connect(pesp_conn);
|
espconn_status = espconn_secure_connect(pesp_conn);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue