Espressif ESP32-S2 Programming Manual page 549

Table of Contents

Advertisement

Chapter 2. API Reference
3.7 int SSL_clear (SSL * ssl)
Arguments:
ssl - SSL point
Return:
1 : OK
0 : failed
Description:
shutdown the connection
Example:
void example(void)
{
SSL *ssl;
int ret;
... ...
ret = SSL_clear(ssl);
}
3.8 int SSL_read (SSL * ssl, void * buffer, int len)
Arguments:
ssl
- point
buffer - data buffer point
len
- data length
Return:
> 0 : OK, and return received data bytes
= 0 : no data received or connection is closed
< 0 : an error catch
Description:
read data from remote
Example:
void example(void)
{
SSL *ssl;
char *buf;
int len;
int ret;
... ...
ret = SSL_read(ssl, buf, len);
}
3.9 int SSL_write (SSL * ssl, const void * buffer, int len)
Arguments:
Espressif Systems
538
Submit Document Feedback
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF