[cli] add energy scan channel (#5677)

This commit is contained in:
Yakun Xu
2020-10-21 12:17:28 -07:00
committed by GitHub
parent 8787cc106c
commit ff76aac3db
3 changed files with 21 additions and 5 deletions
@@ -75,6 +75,11 @@ for {set i 11} {$i <= 26} {incr i} {
expect -re "\\| +$i \\| +-?\\d+ \\|"
}
expect "Done"
send "scan energy 100 $channel\n"
expect "| Ch | RSSI |"
expect "+----+------+"
expect -re "\\| +$channel \\| +-?\\d+ \\|"
expect "Done"
switch_node 3
send "ifconfig up\n"