Skip to content

Commit 675e38a

Browse files
committed
Use the function to set the IP address
In access point example
1 parent ebf7966 commit 675e38a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pico_w/wifi/access_point/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ target_link_libraries(picow_access_point_background
1515
pico_cyw43_arch_lwip_threadsafe_background
1616
pico_stdlib
1717
)
18-
18+
# You can change the address below to change the address of the access point
19+
pico_configure_ip4_address(picow_access_point_background PRIVATE
20+
CYW43_DEFAULT_IP_AP_ADDRESS 192.168.4.1
21+
)
1922
pico_add_extra_outputs(picow_access_point_background)
2023

2124
add_executable(picow_access_point_poll
@@ -33,4 +36,8 @@ target_link_libraries(picow_access_point_poll
3336
pico_cyw43_arch_lwip_poll
3437
pico_stdlib
3538
)
39+
# You can change the address below to change the address of the access point
40+
pico_configure_ip4_address(picow_access_point_poll PRIVATE
41+
CYW43_DEFAULT_IP_AP_ADDRESS 192.168.4.1
42+
)
3643
pico_add_extra_outputs(picow_access_point_poll)

0 commit comments

Comments
 (0)