@@ -9,11 +9,15 @@ target_include_directories(picow_access_point_background PRIVATE
99 ${CMAKE_CURRENT_LIST_DIR} /.. # for our common lwipopts
1010 ${CMAKE_CURRENT_LIST_DIR} /dhcpserver
1111 ${CMAKE_CURRENT_LIST_DIR} /dnsserver
12+ ${PICO_LWIP_CONTRIB_PATH} /apps/httpd
1213 )
1314
1415target_link_libraries (picow_access_point_background
1516 pico_cyw43_arch_lwip_threadsafe_background
1617 pico_stdlib
18+ pico_lwip_http
19+ ap_content
20+ pico_status_led
1721 )
1822# You can change the address below to change the address of the access point
1923pico_configure_ip4_address(picow_access_point_background PRIVATE
@@ -31,13 +35,22 @@ target_include_directories(picow_access_point_poll PRIVATE
3135 ${CMAKE_CURRENT_LIST_DIR} /.. # for our common lwipopts
3236 ${CMAKE_CURRENT_LIST_DIR} /dhcpserver
3337 ${CMAKE_CURRENT_LIST_DIR} /dnsserver
38+ ${PICO_LWIP_CONTRIB_PATH} /apps/httpd
3439 )
3540target_link_libraries (picow_access_point_poll
3641 pico_cyw43_arch_lwip_poll
3742 pico_stdlib
43+ pico_lwip_http
44+ ap_content
45+ pico_status_led
3846 )
3947# You can change the address below to change the address of the access point
4048pico_configure_ip4_address(picow_access_point_poll PRIVATE
4149 CYW43_DEFAULT_IP_AP_ADDRESS 192.168.4.1
4250 )
4351pico_add_extra_outputs(picow_access_point_poll)
52+
53+ pico_add_library(ap_content NOFLAG)
54+ pico_set_lwip_httpd_content(ap_content INTERFACE
55+ ${CMAKE_CURRENT_LIST_DIR} /content /index.shtml
56+ )
0 commit comments