Network Credential AT Commands#

This section describes AT commands for managing network credentials.

Commands#

net-cred-wifipsk#

Configure a Pre-shared Key (PSK) for use while joining an Access Point.

Command Format#

at+net-cred-wifipsk=<credential-id>,<psk>

Related SDK API#

Pre-conditions#

  • oper_mode=0 (Wi-Fi Client)

Parameters#

credential-id#

A unique networking credentials identifier. Contains a numeric value that corresponds to one of the values of the enum sl_net_credential_id_t in sl_net_constants.h.

psk#

A string that contains the PSK to use for authentication with the specified SSID when connecting to the Access Point.

Response#

  • OK on success

  • ERROR <error code> in case of failure. Possible error codes are the same as those returned by the sl_net_set_credential API.

Notes#

This command sets a structure of type sl_net_wifi_psk_credential_entry_t with the given PSK and then invokes the sl_net_set_credential API to save the credential information under the given credential-id.

Examples#

// Set PSK "Silabs1234" for Credential ID 1
at+net-cred-wifipsk=1,"Silabs1234"