@@ -142,9 +142,25 @@ const mp_obj_property_t wifi_radio_hostname_obj = {
142142 (mp_obj_t )& mp_const_none_obj },
143143};
144144
145- //| def connect(self, ssid: ReadableBuffer, password: ReadableBuffer = b"", *, channel: Optional[int] = 0, timeout: Optional[float] = None) -> bool:
145+ //| def connect(self,
146+ //| ssid: ReadableBuffer,
147+ //| password: ReadableBuffer = b"",
148+ //| *,
149+ //| channel: Optional[int] = 0,
150+ //| bssid: Optional[ReadableBuffer] = b"",
151+ //| timeout: Optional[float] = None) -> bool:
146152//| """Connects to the given ssid and waits for an ip address. Reconnections are handled
147- //| automatically once one connection succeeds."""
153+ //| automatically once one connection succeeds.
154+ //|
155+ //| By default, this will scan all channels and connect to the access point (AP) with the
156+ //| given ``ssid`` and greatest signal strength (rssi).
157+ //|
158+ //| If ``channel`` is given, the scan will begin with the given channel and connect to
159+ //| the first AP with the given ``ssid``. This can speed up the connection time
160+ //| significantly because a full scan doesn't occur.
161+ //|
162+ //| If ``bssid`` is given, the scan will start at the first channel or the one given and
163+ //| connect to the AP with the given ``bssid`` and ``ssid``."""
148164//| ...
149165//|
150166STATIC mp_obj_t wifi_radio_connect (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
0 commit comments