Migrating from WiSeConnect SDK v4.0.0 to v4.0.2#
Overview#
This guide describes how to update an existing application from WiSeConnect™ SDK v4.0.0 to v4.0.2.
Version 4.0.2 introduces behavioral changes and updated usage constraints on existing APIs, adds new APIs and structures, and deprecates a set of misspelled macro aliases compared to v4.0.0. Several APIs require updated application-level handling.
Note: Version 4.0.1 was an intermediate release with no Wi-Fi SDK deprecations or new public APIs. This guide covers the cumulative changes from v4.0.0 through v4.0.2.
Migration Steps#
Follow these steps to convert a WiSeConnect SDK v4.0.0 application to a v4.0.2 application:
Open your existing application project in Simplicity Studio.
[Mandatory] If your application uses
SL_WIFI_SCAN_TYPE_EXTENDED, update the scan callback handler to usedata_lengthto allocate a buffer and retrieve results viasl_wifi_get_stored_scan_results(). Note that thesl_wifi_extended_scan_result_tstructure now includes a newseen_countfield.[Mandatory] If your application calls
sl_wifi_set_max_tx_power, ensure it is called beforesl_wifi_connectorsl_wifi_start_ap.[Recommended] If your application uses DNS resolution with custom timeouts or retries, consider migrating to the new
sl_net_dns_resolve_hostname_v2API, which provides configurableinitial_timeout_secandretry_countparameters with exponential backoff.[Recommended] If your application uses MQTT with long passwords, you can now configure passwords up to 512 bytes in
sl_mqtt_client_credentials_t. If your application receives large MQTT payloads, the SDK now automatically reassembles fragmented messages up toSL_MQTT_CLIENT_MAX_RX_PAYLOAD_SIZE(default 8192 bytes, user-configurable).[Recommended] If your application uses
sl_wifi_set_11ax_config, note that 802.11ax configuration is now documented as not supported inSL_WIFI_ACCESS_POINT_MODE.[Recommended] In the project files, update the v4.0.2 deprecated macro spellings with the corresponding
*_EXTENSION_VALIDequivalents. This step is not mandatory (the misspelled names remain as compatibility aliases) but recommended to ensure compatibility with future releases.[Recommended] If you have not yet migrated away from the v3.5.3 deprecated APIs listed in the v3.5.3 to v4.0.0 migration guide, we recommend completing that migration before June 2027, the end of the deprecation period for that release.
Refer to the tables in each of the sections that follow, which map the v4.0.0 API elements to v4.0.2. In some instances, the differences between v4.0.0 and v4.0.2 are highlighted in bold text.
New APIs#
Module | API | Description |
|---|---|---|
Network Stack |
| Resolves a host name to an IP address with configurable |
Updated APIs#
Note: Due to a behavioral change in the extended scan callback, applications using
SL_WIFI_SCAN_TYPE_EXTENDEDmust be updated to usedata_lengthfrom the callback to size the buffer passed tosl_wifi_get_stored_scan_results.
Module | v4.0.0 | v4.0.2 |
|---|---|---|
Wi-Fi | For | The scan callback is now invoked with |
Wi-Fi |
| Added pre-condition: |
Wi-Fi | Documented limitations for | |
Wi-Fi |
| This configuration is NOT supported in WLAN+BLE coexistence mode. |
Wi-Fi |
| Added documentation: 802.11ax configuration is applicable only to client-capable modes ( |
Wi-Fi |
| KCC region power values updated. SRRC region code changed from |
Network Stack | Maximum MQTT password length was 60 bytes in | Maximum MQTT password length increased to 512 bytes in |
Network Stack |
| Content length limit removed. For RX, the SDK automatically reassembles fragmented payloads. Maximum reassembly size is controlled by the new |
New Structures and Fields#
Module | Structure / Field | Description |
|---|---|---|
Wi-Fi |
| New |
Wi-Fi |
| New union member extending |
New Macros and Enums#
Module | Macro / Enum | Description |
|---|---|---|
Network Stack |
| Configurable maximum MQTT RX payload size for large message reassembly (default 8192 bytes). Set to 0 to disable large payload reassembly. |
Network Stack |
| New error enum: MQTT message receive operation failed. |
Network Stack |
| New error enum: received payload exceeds |
Network Stack |
| New error enum: memory allocation failed during message reassembly. |
Network Stack |
| New error enum: data corruption during message reassembly. |
Deprecated APIs#
No new API deprecations were introduced in v4.0.1 or v4.0.2. All API deprecations from v4.0.0 remain in effect with a planned removal date of June 2027. Refer to the Migrating from v3.5.3 to v4.0.0 guide for the complete mapping of deprecated APIs.
Deprecated Structures#
No new structure deprecations were introduced in v4.0.1 or v4.0.2. All deprecations from v4.0.0 remain in effect. Refer to the Migrating from v3.5.3 to v4.0.0 guide for the complete mapping of deprecated structures.
Deprecated Enums#
No new enum deprecations were introduced in v4.0.1 or v4.0.2. All deprecations from v4.0.0 remain in effect. Refer to the Migrating from v3.5.3 to v4.0.0 guide for the complete mapping of deprecated enums.
Deprecated Macros#
Note: Starting from WC-4.0.2, the misspelled
*_EXTENTION_VALIDmacro names are deprecated in favor of the corrected*_EXTENSION_VALIDspellings. The*_EXTENSION_VALIDmacros are now the primary definitions, and the misspelled names are retained as compatibility aliases with documented deprecation notices. The default device configuration structs have also been updated to use the corrected spellings. All macro deprecations from v4.0.0 also remain in effect; refer to the Migrating from v3.5.3 to v4.0.0 guide for those.
Module | v4.0.0[Deprecated] | v4.0.2[New] |
|---|---|---|
Wi-Fi |
|
|
Wi-Fi |
|
|
BLE |
|
|
Note#
For information about deprecation warnings in WiSeConnect SDK v4.0.0, see SL_DEPRECATED_API_WISECONNECT_4_0.
For information on suppressing deprecation warnings in WiSeConnect SDK v4.0.0, see SL_SUPPRESS_DEPRECATION_WARNINGS_WISECONNECT_4_0.