9.20.1.1 +WSTAC

This command is used to read or set the DCE’s Wi-Fi station mode configuration. This command is a configuration command which supports setting and getting parameter values. The behavior of configuration commands is described in general in the Configuration Commands section.

Security – Default Security for the command is: GGGG

Table 9-223. Command Syntax

Command

Description

Security

AT+WSTAC

Query all configuration elements

GGGG

AT+WSTAC=<ID>

Query a single element

GGGG

AT+WSTAC=<ID>,<VAL>

Set a single element

GGGG

Table 9-224. Command Parameter Syntax

Parameter Name

Type

Description

<ID>

Integer

Parameter ID number

<VAL>

Integer String Byte Array

Parameter value

Table 9-225. Response Syntax

Response

Description

+WSTAC:<ID>,<VAL>

Read response

Table 9-226. Response Element Syntax

Element Name

Type

Description

<ID>

Integer

Parameter ID number

<VAL>

Any

Parameter value

Table 9-227. Configuration Parameters

ID

Name

Type

Description

Security

1

<SSID>

String

Network name Maximum length is 32

GGGG

2

<SEC_TYPE>

Integer

Security type
  • 0 – Open
  • 2 – WPA2-Personal Mixed Mode
  • 3 – WPA2-Personal
  • 4 – WPA3-Personal Transition Mode
  • 5 – WPA3-Personal
  • 6 – WPA2-Enterprise Mixed Mode
  • 7 – WPA2-Enterprise
  • 8 – WPA3-Enterprise Transition Mode
  • 9 – WPA3-Enterprise

GGGG

3

<CREDENTIALS>

String

Credentials for connecting to the network Maximum length is 128

GGGG

4

<CHANNEL>

Integer

The channel the network must reside on (or 0 for any). Valid range is 0-13

GGGG

5

<BSSID>

MAC Address

The BSSID of the network to connect to

GGGG

7

<CONN_TIMEOUT>

Integer

Connection timeout in milliseconds

GGGG

8

<NETIF_IDX>

Unsigned Integer

Network interface index

GGGG