diff options
author | Maureen Helm <maureen.helm@nxp.com> | 2020-11-30 10:45:05 -0600 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-12-07 23:01:00 +1100 |
commit | 92a5ee6ac1c50084f8c29d4accda67cca91b6846 (patch) | |
tree | 3445ae9bad5321b802f574e2984fcfb10ba7d9f5 /py/objstrunicode.c | |
parent | cb1bb7592e18a50f33d22f84614c5ee9f45ce21e (diff) | |
download | micropython-92a5ee6ac1c50084f8c29d4accda67cca91b6846.tar.gz micropython-92a5ee6ac1c50084f8c29d4accda67cca91b6846.zip |
zephyr: Replace broken shell_net_iface() with more general shell_exec().
The zephyr function net_shell_cmd_iface() was removed in zephyr v1.14.0,
therefore the MicroPython zephyr port did not build with newer zephyr
versions when CONFIG_NET_SHELL=y. Replace with a more general
shell_exec() function that can execute any zephyr shell command. For
example:
>>> zephyr.shell_exec("net")
Subcommands:
allocs :Print network memory allocations.
arp :Print information about IPv4 ARP cache.
conn :Print information about network connections.
dns :Show how DNS is configured.
events :Monitor network management events.
gptp :Print information about gPTP support.
iface :Print information about network interfaces.
ipv6 :Print information about IPv6 specific information and
configuration.
mem :Print information about network memory usage.
nbr :Print neighbor information.
ping :Ping a network host.
pkt :net_pkt information.
ppp :PPP information.
resume :Resume a network interface
route :Show network route.
stacks :Show network stacks information.
stats :Show network statistics.
suspend :Suspend a network interface
tcp :Connect/send/close TCP connection.
vlan :Show VLAN information.
websocket :Print information about WebSocket connections.
>>> zephyr.shell_exec("kernel")
kernel - Kernel commands
Subcommands:
cycles :Kernel cycles.
reboot :Reboot.
stacks :List threads stack usage.
threads :List kernel threads.
uptime :Kernel uptime.
version :Kernel version.
Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
Diffstat (limited to 'py/objstrunicode.c')
0 files changed, 0 insertions, 0 deletions