Wi-Fi Radio AT Commands#
Commands#
wifi-listen-interval#
Set the Wi-Fi listen interval for the Si91x device.
Command Format#
at+wifi-listen-interval=<wifi-interface>,<listen-interval>,<listen-interval-multiplier>
Related SDK API
sl_wifi_set_listen_interval_v2
Pre-conditions#
Parameters#
wifi-interface#
The Wi-Fi interface type for which the listen interval needs to be set. Contains a numeric value that corresponds to one of the values of the enum sl_wifi_interface_t. Note some values are not currently supported, as indicated in the linked documentation.
Note: The enum values of sl_wifi_interface_t are not in the default numerical order of an enum. See sl_wifi_constants.h for the actual numeric values in this enum.
listen-interval#
The Listen Interval in milliseconds that is to be configured after multiplying it by the listen-interval-multiplier
(see below) with the Access Point (AP) while joining the AP (when the net-up command is sent).
listen-interval-multiplier#
Optional. Multiplier for the listen-interval
, sent by the device in the association request to the Access Point while joining (when the net-up command is sent). Multiplier will be set to 1 if this argument is omitted. Maximum value recommended is 10. Higher values may lead to interoperability issues.
Response#
OK
on successERROR <error code>
in case of failure. Possible error codes are the same as those returned by the sl_wifi_set_listen_interval_v2 API.
Examples#
// Set the Listen Interval to 1 second and Listen Interval Multiplier to 2 for the Wi-Fi client interface (Listen Interval of 2 seconds sent to AP while joining)
at+wifi-listen-interval=1,1000,2
wifi-get-listen-interval#
Queries the listen interval currently configured for the SiWx91x Wi-Fi client (station) by its connected Access Point.
Command Format#
at+wifi-get-listen-interval=<interface>
Related SDK API
sl_wifi_get_listen_interval_v2
Pre-conditions#
Parameters#
interface#
The Wi-Fi client interface for which the listen interval is to be queried. Contains a numeric value that corresponds to one of the values of the enum sl_wifi_interface_t. Note some values are not currently supported, as indicated in the linked documentation.
Note: The enum values of sl_wifi_interface_t are not in the default numerical order of an enum. See sl_wifi_constants.h for the actual numeric values in this enum.
Response#
OK <listen-interval> <listen-interval-multiplier>
in case of success, where:<listen-interval>
is the listen interval in milliseconds that is currently configured for the SiWx91x Wi-Fi client (station) by its connected Access Point.<listen-interval-multiplier>
is the number by which the<listen-interval>
sent in thewifi-listen-interval
value was multiplied and the resulting value sent to the Access Point.
ERROR <error code>
in case of error. The error codes returned are the same as those returned by the sl_wifi_get_listen_interval_v2` API.
Examples#
at+wifi-get-listen-interval=1
OK 1000 1