Wi-Fi Cli Command Guide

For better understanding and developing, the SDK integrates some basic Wi-Fi operation instructions

Source Code Path

components\bk_cli\cli_wifi.c & cli_netif.c

Cli Command Description

The following table describes the Wi-Fi cli commands supported by the SDK:

Command

Param

Description

sta: sta [ssid] [password]

param1: ssid

target router

param2: password

target router password

ap: ap ssid [password] [channel]

param1: ssid

custom softap name

param2: password

custom softap password

param2: channel

custom softap channel [1-14]

scan: scan [ssid]

NULL

scan all neighbouring APs

ping: ping [ip] [count]

param1: ip

target host ip address

param2: count

number of Ping

state: state - show STA/AP state

NULL

show current Station/SoftAP status

ip: ip [sta|ap][{ip}{mask}{gate}{dns}]

NULL

show current parameters of network connection

stop: stop {sta|ap}

sta/ap

stop current station/softap

iperf: iperf [-s|-c|-stop]

-s

DUT act as server

-c -u

DUT act as client, -u stands for UDP

-stop

stop iperf