esp8266/scripts/port_diag: Dump network interface IP settings.
This commit is contained in:
parent
eaecc4c02e
commit
bc2ba6b2e3
@ -1,5 +1,6 @@
|
|||||||
import esp
|
import esp
|
||||||
import uctypes
|
import uctypes
|
||||||
|
import network
|
||||||
import lwip
|
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("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)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user