You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get or set general network interface parameters. These methods allow to work
201
-
with additional parameters beyond standard IP configuration (as dealt with by
202
-
`AbstractNIC.ipconfig()`). These include network-specific and hardware-specific
203
-
parameters. For setting parameters, keyword argument syntax should be used,
204
-
multiple parameters can be set at once. For querying, parameters name should
205
-
be quoted as a string, and only one parameter can be queries at time::
206
-
207
-
# Set WiFi access point name (formally known as SSID) and WiFi channel
208
-
ap.config(ssid='My AP', channel=11)
209
-
# Query params one by one
210
-
print(ap.config('ssid'))
211
-
print(ap.config('channel'))
212
-
213
-
Following are commonly supported parameters (availability of a specific parameter
214
-
depends on network technology type, driver, and :term:`MicroPython port`).
215
-
216
-
============= ===========
217
-
Parameter Description
218
-
============= ===========
219
-
mac MAC address (bytes)
220
-
ssid WiFi access point name (string)
221
-
channel WiFi channel (integer). Depending on the port this may only be supported on the AP interface.
222
-
hidden Whether SSID is hidden (boolean)
223
-
security Security protocol supported (enumeration, see module constants)
224
-
key Access key (string)
225
-
hostname The hostname that will be sent to DHCP (STA interfaces) and mDNS (if supported, both STA and AP). (Deprecated, use :func:`network.hostname` instead)
226
-
reconnects Number of reconnect attempts to make (integer, 0=none, -1=unlimited)
227
-
txpower Maximum transmit power in dBm (integer or float)
228
-
pm WiFi Power Management setting (see below for allowed values)
229
-
============= ===========
230
-
"""
231
-
232
-
@overload
233
-
defconfig(self, **kwargs: Any) ->None:
124
+
...
125
+
defconfig(self, *args, **kwargs) ->Incomplete:
234
126
"""
235
127
Get or set general network interface parameters. These methods allow to work
236
128
with additional parameters beyond standard IP configuration (as dealt with by
@@ -263,3 +155,4 @@ class WLAN:
263
155
pm WiFi Power Management setting (see below for allowed values)
0 commit comments