Skip to content
Snippets Groups Projects
Commit bc2ba6b2 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/scripts/port_diag: Dump network interface IP settings.

parent eaecc4c0
Branches
No related tags found
No related merge requests found
import esp import esp
import uctypes import uctypes
import network
import lwip import lwip
...@@ -18,6 +19,8 @@ def main(): ...@@ -18,6 +19,8 @@ def main():
print("Byte @3: %02x (Flash size: %s Flash freq: %s)" % (ROM[3], SZ_MAP.get(ROM[3] >> 4, "?"), FREQ_MAP.get(ROM[3] & 0xf))) print("Byte @3: %02x (Flash size: %s Flash freq: %s)" % (ROM[3], SZ_MAP.get(ROM[3] >> 4, "?"), FREQ_MAP.get(ROM[3] & 0xf)))
print("\nNetworking:") print("\nNetworking:")
print("STA ifconfig:", network.WLAN(network.STA_IF).ifconfig())
print("AP ifconfig:", network.WLAN(network.AP_IF).ifconfig())
print("Free WiFi driver buffers of type:") print("Free WiFi driver buffers of type:")
for i in range(5): for i in range(5):
print("%d: %d" % (i, esp.esf_free_bufs(i))) print("%d: %d" % (i, esp.esf_free_bufs(i)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment