Skip to content

Commit 104cf0b

Browse files
anecdatadhalbert
authored andcommitted
raspberrypi: start AP before set IPv4
1 parent 3d212f7 commit 104cf0b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

shared-bindings/wifi/Radio.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,11 @@ MP_PROPERTY_GETTER(wifi_radio_ipv4_subnet_ap_obj,
560560
//| ) -> None:
561561
//| """Sets the IP v4 address of the station. Must include the netmask and gateway. DNS address is optional.
562562
//| Setting the address manually will stop the DHCP client."""
563+
//|
564+
//| .. note::
565+
//|
566+
//| In the raspberrypi port (RP2040 CYW43), the access point needs to be started before the IP v4 address can be set.
567+
//| """
563568
//| ...
564569
STATIC mp_obj_t wifi_radio_set_ipv4_address(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
565570
enum { ARG_ipv4, ARG_netmask, ARG_gateway, ARG_ipv4_dns };

0 commit comments

Comments
 (0)