esp32/modnetwork: Add max_clients kw-arg to WLAN.config for AP setting.

This allows the user to configure the maximum number of clients that are
connected to the access point.  Resolves #5125.
This commit is contained in:
adzierzanowski
2020-01-16 11:16:43 +01:00
committed by Damien George
parent 59746ac14a
commit a55c17dc69
2 changed files with 10 additions and 0 deletions

View File

@@ -82,6 +82,7 @@ The :mod:`network` module::
ap = network.WLAN(network.AP_IF) # create access-point interface
ap.config(essid='ESP-AP') # set the ESSID of the access point
ap.config(max_clients=10) # set how many clients can connect to the network
ap.active(True) # activate the interface
A useful function for connecting to your local WiFi network is::