Skip to content

Commit

Permalink
Use the function to set the IP address
Browse files Browse the repository at this point in the history
In access point example
  • Loading branch information
peterharperuk committed Jan 5, 2024
1 parent 96f4abe commit d66f0ad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pico_w/wifi/access_point/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ target_link_libraries(picow_access_point_background
pico_cyw43_arch_lwip_threadsafe_background
pico_stdlib
)

# You can change the address below to change the address of the access point
pico_configure_ip4_address(picow_access_point_background PRIVATE
CYW43_DEFAULT_IP_AP_ADDRESS 192.168.4.1
)
pico_add_extra_outputs(picow_access_point_background)

add_executable(picow_access_point_poll
Expand All @@ -33,4 +36,8 @@ target_link_libraries(picow_access_point_poll
pico_cyw43_arch_lwip_poll
pico_stdlib
)
# You can change the address below to change the address of the access point
pico_configure_ip4_address(picow_access_point_poll PRIVATE
CYW43_DEFAULT_IP_AP_ADDRESS 192.168.4.1
)
pico_add_extra_outputs(picow_access_point_poll)

0 comments on commit d66f0ad

Please sign in to comment.