print network interface info
This commit is contained in:
@@ -9,6 +9,8 @@ import micropython
|
|||||||
import network
|
import network
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
from math import pi, sin, pow
|
||||||
|
import ubinascii
|
||||||
|
|
||||||
# Own modules
|
# Own modules
|
||||||
import app
|
import app
|
||||||
@@ -43,6 +45,13 @@ def setup_wifi():
|
|||||||
# disable power management
|
# disable power management
|
||||||
wlan.config(pm=network.WLAN.PM_NONE)
|
wlan.config(pm=network.WLAN.PM_NONE)
|
||||||
|
|
||||||
|
mac = ubinascii.hexlify(network.WLAN().config('mac'), ':').decode()
|
||||||
|
print(f" mac: {mac}")
|
||||||
|
print(f" channel: {wlan.config('channel')}")
|
||||||
|
print(f" essid: {wlan.config('essid')}")
|
||||||
|
print(f" txpower: {wlan.config('txpower')}")
|
||||||
|
print(f"ifconfig: {wlan.ifconfig()}")
|
||||||
|
|
||||||
|
|
||||||
DB_PATH = '/sd/tonberry.db'
|
DB_PATH = '/sd/tonberry.db'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user