Skip to content

Commit b5504a8

Browse files
authored
Merge pull request adafruit#6104 from FoamyGuy/wifi_docstring_types
update wifi module doc types to str
2 parents 3089c9b + 6a792ab commit b5504a8

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎shared-bindings/wifi/Radio.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const mp_obj_property_t wifi_radio_enabled_obj = {
7676
MP_ROM_NONE },
7777
};
7878

79-
//| hostname: ReadableBuffer
79+
//| hostname: Union[str | ReadableBuffer]
8080
//| """Hostname for wifi interface. When the hostname is altered after interface started/connected
8181
//| the changes would only be reflected once the interface restarts/reconnects."""
8282
//|
@@ -226,8 +226,8 @@ STATIC mp_obj_t wifi_radio_stop_station(mp_obj_t self) {
226226
MP_DEFINE_CONST_FUN_OBJ_1(wifi_radio_stop_station_obj, wifi_radio_stop_station);
227227

228228
//| def start_ap(self,
229-
//| ssid: ReadableBuffer,
230-
//| password: ReadableBuffer = b"",
229+
//| ssid: Union[str | ReadableBuffer],
230+
//| password: Union[str | ReadableBuffer] = "",
231231
//| *,
232232
//| channel: Optional[int] = 1,
233233
//| authmode: Optional[AuthMode],
@@ -304,11 +304,11 @@ STATIC mp_obj_t wifi_radio_stop_ap(mp_obj_t self) {
304304
MP_DEFINE_CONST_FUN_OBJ_1(wifi_radio_stop_ap_obj, wifi_radio_stop_ap);
305305

306306
//| def connect(self,
307-
//| ssid: ReadableBuffer,
308-
//| password: ReadableBuffer = b"",
307+
//| ssid: Union[str | ReadableBuffer],
308+
//| password: Union[str | ReadableBuffer] = "",
309309
//| *,
310310
//| channel: Optional[int] = 0,
311-
//| bssid: Optional[ReadableBuffer] = b"",
311+
//| bssid: Optional[Union[str | ReadableBuffer]] = "",
312312
//| timeout: Optional[float] = None) -> None:
313313
//| """Connects to the given ssid and waits for an ip address. Reconnections are handled
314314
//| automatically once one connection succeeds.

0 commit comments

Comments
 (0)