I am unable to find a way to access Chip ID, MAC ID, Chip Signature and other core MCU related values.
I did try wifi.link_info() but it returns garbage value where MAC ID Element was expected.
I am unable to find a way to access Chip ID, MAC ID, Chip Signature and other core MCU related values.
I did try wifi.link_info() but it returns garbage value where MAC ID Element was expected.
only the Mac ID is exposed, Can you post the output of wifi.link_info()?
But why do you need the other information?
# import the wifi interface
from wireless import wifi
# import wifi support
from espressif.esp32net import esp32wifi as wifi_driver
streams.serial()
# init the wifi driver!
# The driver automatically registers itself to the wifi interface
# with the correct configuration for the selected device
wifi_driver.auto_init()
# use the wifi interface to link to the Access Point
# change network name, security and password as needed
print("Establishing Link...")
try:
# FOR THIS EXAMPLE TO WORK, "Network-Name" AND "Wifi-Password" MUST BE SET
# TO MATCH YOUR ACTUAL NETWORK CONFIGURATION
wifi.link("TestHotPot",wifi.WIFI_WPA2,"TestPotHot")
print("Link Established")
nwkInfo = wifi.link_info()
print("Device Network Info:",nwkInfo)
except Exception as e:
print("ooops, something wrong while linking :(", e)
while True:
sleep(1000)