Socket configuration#

Functions#

int32_t
rsi_tcp_window_update(uint32_t sockID, uint32_t new_size_bytes)

Update TCP window size from host. This is a blocking API.

int32_t
rsi_wlan_set_certificate(uint8_t certificate_type, uint8_t *buffer, uint32_t certificate_length)

Load SSL/EAP certificate in the module. This is a blocking API.

Function Documentation#

rsi_tcp_window_update#

int32_t rsi_tcp_window_update (uint32_t sockID, uint32_t new_size_bytes)

Update TCP window size from host. This is a blocking API.

Parameters
[in]sockID

- Socket descriptor ID

[in]new_size_bytes

- Window size to update in bytes

Returns

  • Positive Value - Window size updated Negative Value - Failure

Note

  • Precondition - rsi_connect() API needs to be called before this API.


Definition at line 2546 of file network/socket/rsi_socket.c

rsi_wlan_set_certificate#

int32_t rsi_wlan_set_certificate (uint8_t certificate_type, uint8_t * buffer, uint32_t certificate_length)

Load SSL/EAP certificate in the module. This is a blocking API.

Parameters
[in]certificate_type

- Type of certificate These are the certificate types:

Value

Certificate type

1

TLS client certificate

2

FAST PAC file

3

SSL Client Certificate

4

SSL Client Private Key

5

SSL CA Certificate

6

SSL Server Certificate

7

SSL Server Private Key

[in]buffer

- Pointer to a buffer which contains the certificate

[in]certificate_length

- Certificate length

Returns

  • 0 - Success

  • Non-Zero Value - Failure (Possible Error Codes - 0xfffffffe,0xfffffffd,0xfffffffa,0x0015,0x0021,0x0025,0x0026,0x002C)

Note


Definition at line 3492 of file wlan/rsi_wlan_apis.c