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

This commit is contained in:
Paul Sokolovsky 2016-05-24 01:27:16 +03:00
parent eaecc4c02e
commit bc2ba6b2e3
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import esp
import uctypes
import network
import lwip
@ -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("\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:")
for i in range(5):
print("%d: %d" % (i, esp.esf_free_bufs(i)))