Migrating from WiSeConnect SDK v4.1.0 to v4.1.1#

Overview#

This guide describes how to update an existing application from WiSeConnectâ„¢ SDK v4.1.0 to v4.1.1.

Migration Steps#

New APIs#

Module

API

Description

Websocket

sl_websocket_set_origin

Sets the Origin header for a WebSocket client before connecting.

Networking

sl_wifi_get_ip_config_failure_reason

To retrieve the cause of IP configuration failure. This function allows applications to query and diagnose the failure reason if obtaining an IP address.

Updated APIs#

Module

v4.1.0

v4.1.1

Wi-Fi

Default SL_SI91X_GET_INTERFACE_INFO_TIMEOUT was 1000 ms (1 second).

Default SL_SI91X_GET_INTERFACE_INFO_TIMEOUT is 15000 ms (15 seconds) to improve reliability of sl_wifi_get_interface_info() and reduce timeout-related failures.

New Structures and Fields#

Module

Structure / Field

Description

-

sl_websocket_client_t.origin

New char array field to store the WebSocket Origin header value. Use sl_websocket_set_origin() to configure this field; do not modify it directly.

New Macros and Enums#

Module

Macro / Enum

Description

Wi-Fi

SL_WIFI_FEAT_CLEAR_SCAN_RESULTS_AFTER_USE (BIT(21))

Automatically clears cached scan/BSS entries after scan results are consumed, helping prevent stale scan data from being reused.

Websocket

SL_SI91X_WEBSOCKET_MAX_ORIGIN_LENGTH

Defines the maximum WebSocket Origin header length (51 bytes). Not to be configured by the user.

Websocket

SL_WEBSOCKET_ERR_MAX_LENGTH_EXCEEDED

New error enum in sl_websocket_error_t (-9): returned when the maximum length is exceeded.

Deprecated APIs#

Deprecated Structures#

Deprecated Macros#