There appears to be a new 'ipconfig()' function which has appeared with latest MicroPython -
But I did find these posts which refer to it and it seems to mostly relate to IPv6 support -
https://github.com/micropython/micropython/pull/13689
https://github.com/micropython/micropython/pull/9108
https://github.com/micropython/micropython/issues/12600
https://github.com/micropython/micropython/pull/14140
I am not sure what the consequences of "the now-deprecated ifconfig" will be, the suggestion to remove 'ifconfig' in the future. If that does reult in the removal of 'ifconfig' it will break a considerable amount of Wi-Fi code and examples so far produced for the Pico W.
I couldn't find any mention of 'ipconfig' in the official documentation - https://docs.micropython.org/en/latest/ ... .WLAN.html - nor for 'deinit', 'ioctl' or 'send_ethernet' for that matter.>>> import network
>>> wlan = network.WLAN(network.STA_IF)
>>> dir(wlan)
['__class__', 'PM_NONE', 'PM_PERFORMANCE', 'PM_POWERSAVE', 'active', 'config', 'connect', 'deinit', 'disconnect', 'ifconfig', 'ioctl', 'ipconfig', 'isconnected', 'scan', 'send_ethernet', 'status']
>>>
But I did find these posts which refer to it and it seems to mostly relate to IPv6 support -
https://github.com/micropython/micropython/pull/13689
https://github.com/micropython/micropython/pull/9108
https://github.com/micropython/micropython/issues/12600
https://github.com/micropython/micropython/pull/14140
I am not sure what the consequences of "the now-deprecated ifconfig" will be, the suggestion to remove 'ifconfig' in the future. If that does reult in the removal of 'ifconfig' it will break a considerable amount of Wi-Fi code and examples so far produced for the Pico W.
Statistics: Posted by hippy — Tue Mar 26, 2024 1:15 pm