add an explicit test of the unsub path

normally you would never use this, this would cause the
connection manager to muck up.
This commit is contained in:
bunnie 2022-04-25 18:30:43 +08:00
parent 969b4ec868
commit d23dbd1db8

View file

@ -62,6 +62,12 @@ impl<'a> ShellCmdApi<'a> for NetCmd {
if let Some(sub_cmd) = tokens.next() {
match sub_cmd {
"unsub" => {
match env.netmgr.wifi_state_unsubscribe() {
Ok(_) => write!(ret, "wifi state successful"),
Err(e) => write!(ret, "wifi unsub error: {:?}", e),
};
}
"tcpget" => {
// note: to keep shellchat lightweight, we do a very minimal parsing of the URL. We assume it always has
// a form such as: