43
SLN-VIZNAS-IOT User Guide, Rev. 1.1, 10/2020
NXP Semiconductors
3.2.20
Reset Wi-Fi
The command
“wifi reset”
can be used to reset the
kit’s connection to the network.
Resetting the network can be useful in scenarios where the kit has lost connection to its
network, but performing a Wi-Fi reset is also necessary any time the Wi-Fi credentials are
updated.
SHELL>> wifi reset
SHELL>> Wi-Fi will reset
Figure 74: "wifi reset" Command
3.2.21
Retrieve Wi-Fi Credentials
If Wi-Fi credentials have already been configured on the kit either through the CLI
interface or through the remote provisioning application, using the command
“wifi
credentials”
will retrieve both the SSID and password credentials which are currently in
use.
SHELL>> wifi credentials
SHELL>> SSID is test_ssid with password 123456.
Figure 75: "wifi credentials" command
If no credentials are currently in use, the output of the command will look like the following:
SHELL>> wifi credentials
SHELL>> Wi-Fi Credentials not found
Figure 76: "Wi-Fi Credentials not found" Message
NOTE: While useful during development, exposing sensitive password information is not
recommended, and it is advised that this command be disabled.
3.2.22
Configure Wi-Fi Credentials
The
“wifi credentials SSID PASSWORD”
command can be used to configure the Wi-Fi
settings being used by the kit.
SHELL>> wifi credentials test_ssid 123456
SHELL>> Wi-Fi credentials set. New network will be available after Wi-
Fi reset
Figure 77: "wifi credentials" w/ Args
To begin using the newly configured Wi-Fi settings, a Wi-Fi reset must be issued either
through a reset of the board or via the
“wifi reset”
CLI command discussed previously.
Failure to properly specify both an SSID and password will result in output like the
following:
SHELL>> wifi credentials test_ssid
SHELL>> Wrong command for wi-fi credentials
Figure 78: "wifi credentials" w/ Bad Arg