Way to query what network WLAN config options are implemented? #9110
-
Way to query what network WLAN config options are implemented? Came across this just this morning, that config('reconnects') exists, but on the latest nightly build for ESP8266, I get ValueError: unknown config param. But a Google search will bring up quite a few hits that such parameter exists, for ESP32 and ESP8266, or are all those hits bogus? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
This is what the documentation tells: https://docs.micropython.org/en/latest/library/network.WLAN.html?highlight=wlan%20config#network.WLAN.ifconfig
For requesting
|
Beta Was this translation helpful? Give feedback.
-
Any and all improvements, greatly appreciated. :) |
Beta Was this translation helpful? Give feedback.
-
I run this when I'm not sure:
This assumes that network's already set up in boot.py, or at least in some code that's already been run. |
Beta Was this translation helpful? Give feedback.
-
Yeah, that is a cool method, I did some similar, creating a dictionary object that I can then query. |
Beta Was this translation helpful? Give feedback.
This is what the documentation tells: https://docs.micropython.org/en/latest/library/network.WLAN.html?highlight=wlan%20config#network.WLAN.ifconfig
A glance through the ESP8266 code reveals:
For setting
For requesting