Network Configuration#
Functions#
Configure the IP address for the specified virtual AP.
Function Documentation#
sl_si91x_configure_ip_address#
sl_status_t sl_si91x_configure_ip_address (sl_net_ip_configuration_t * address, uint8_t virtual_ap_id)
Configure the IP address for the specified virtual AP.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| sl_net_ip_configuration_t * | [in] | address | Pointer to an sl_net_ip_configuration_t structure where the assigned IP address details will be stored. |
| uint8_t | [in] | virtual_ap_id | Virtual AP ID. One of the values from sl_wifi_vap_id_t. |
This function configures the IP address for the specified virtual Access Point (AP) on the Si91x device. The IP address details are provided in the address parameter.
Virtual AP ID is used to differentiate between client and AP in concurrent mode.
Returns
sl_status_t. See Status Codes and WiSeConnect Status Codes for details.
Note
The function's wait time depends on the number of retries and intervals specified in the DHCP configuration contained in the
addressparameter. Ensure that the DHCP retry intervals and maximum retries are configured appropriately to avoid unexpected delays. For details on calculating the wait time, refer to the sl_net_dhcp_configuration_t structureOn success,
address->typeis updated to reflect only the address families that configured successfully.For a dual-stack request (IPv4 and IPv6), return values are:
SL_STATUS_OK: both families configuredSL_STATUS_WIFI_IPV4_OK: only IPv4 configured (partial success; link is usable)SL_STATUS_WIFI_IPV6_OK: only IPv6 configured (partial success; link is usable)IPv4 firmware error : neither family configured; the return code is the IPv4 failure only. Call sl_wifi_get_ip_config_failure_reason to retrieve the per-family IPv4 and IPv6 error codes.