Skip to content

Commit bc2ba6b

Browse files
committed
esp8266/scripts/port_diag: Dump network interface IP settings.
1 parent eaecc4c commit bc2ba6b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

esp8266/scripts/port_diag.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import esp
22
import uctypes
3+
import network
34
import lwip
45

56

@@ -18,6 +19,8 @@ def main():
1819
print("Byte @3: %02x (Flash size: %s Flash freq: %s)" % (ROM[3], SZ_MAP.get(ROM[3] >> 4, "?"), FREQ_MAP.get(ROM[3] & 0xf)))
1920

2021
print("\nNetworking:")
22+
print("STA ifconfig:", network.WLAN(network.STA_IF).ifconfig())
23+
print("AP ifconfig:", network.WLAN(network.AP_IF).ifconfig())
2124
print("Free WiFi driver buffers of type:")
2225
for i in range(5):
2326
print("%d: %d" % (i, esp.esf_free_bufs(i)))

0 commit comments

Comments
 (0)