mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
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:
parent
969b4ec868
commit
d23dbd1db8
1 changed files with 6 additions and 0 deletions
|
|
@ -62,6 +62,12 @@ impl<'a> ShellCmdApi<'a> for NetCmd {
|
||||||
|
|
||||||
if let Some(sub_cmd) = tokens.next() {
|
if let Some(sub_cmd) = tokens.next() {
|
||||||
match sub_cmd {
|
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" => {
|
"tcpget" => {
|
||||||
// note: to keep shellchat lightweight, we do a very minimal parsing of the URL. We assume it always has
|
// note: to keep shellchat lightweight, we do a very minimal parsing of the URL. We assume it always has
|
||||||
// a form such as:
|
// a form such as:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue