|
3 | 3 | .. ncs-sample:: |
4 | 4 | :title: HTTP Server |
5 | 5 |
|
6 | | - The HTTP Server sample demonstrates how to host an HTTP server on a Nordic Semiconductor device that is connected to the Internet through LTE or Wi-Fi®. |
| 6 | + The HTTP Server sample demonstrates how to host an HTTP server on a Nordic Semiconductor device that is connected to the Internet through LTE using an nRF91 Series device, or Wi-Fi® using an nRF71 or nRF70 Series device. |
7 | 7 |
|
8 | 8 | .. |wifi| replace:: Wi-Fi |
9 | 9 |
|
@@ -188,16 +188,26 @@ CONFIG_HTTP_SERVER_SAMPLE_RECEIVE_BUFFER_SIZE |
188 | 188 | Configuration files |
189 | 189 | =================== |
190 | 190 |
|
191 | | -The sample includes pre-configured configuration files for the development kits that are supported: |
| 191 | +The sample provides predefined configuration files for the following development kits: |
192 | 192 |
|
193 | | -* :file:`prj.conf` - For all devices. |
194 | | -* :file:`boards/nrf7002dk_nrf5340_cpuapp_ns.conf` - For the nRF7002 DK. |
195 | | -* :file:`boards/nrf9151dk_nrf9151_ns.conf` - For the nRF9151 DK. |
196 | | -* :file:`boards/nrf9161dk_nrf9161_ns.conf` - For the nRF9161 DK. |
197 | | -* :file:`boards/nrf9160dk_nrf9160_ns.conf` - For the nRF9160 DK. |
198 | | -* :file:`boards/nrf7120dk_nrf7120_cpuapp_ns.conf` - For the nRF7120 DK. |
| 193 | +* :file:`prj.conf` - General configuration file for all devices. |
| 194 | +* :file:`boards/nrf7002dk_nrf5340_cpuapp_ns.conf` - Board-specific configuration for the nRF7002 DK. |
| 195 | +* :file:`boards/nrf9151dk_nrf9151_ns.conf` - Configuration file for the nRF9151 DK. |
| 196 | +* :file:`boards/nrf9161dk_nrf9161_ns.conf` - Configuration file for the nRF9161 DK. |
| 197 | +* :file:`boards/nrf9160dk_nrf9160_ns.conf` - Configuration file for the nRF9160 DK. |
| 198 | +* :file:`boards/nrf7120dk_nrf7120_cpuapp_ns.conf` - Configuration file for the nRF7120 DK. |
| 199 | +* :file:`wifi.conf` - Extra configuration file for Wi-Fi networking, common to the nRF71 Series and nRF70 Series. Must be added explicitly for Wi-Fi builds. |
| 200 | +* :file:`wifi-tls.conf` - Additional extra configuration file that enables TLS support (server authentication, with optional mutual authentication) for Wi-Fi builds. |
199 | 201 |
|
200 | | -Files that are located under the :file:`/boards` folder are automatically merged with the :file:`prj.conf` file when you build for the corresponding target. |
| 202 | +Board files under :file:`boards/` are merged automatically for the selected target. |
| 203 | +The :file:`wifi.conf` and :file:`wifi-tls.conf` extra configuration files are not board-specific and must be passed explicitly with ``http_server_EXTRA_CONF_FILE``. |
| 204 | + |
| 205 | +To add a specific extra configuration file to the build, add the ``-- -Dhttp_server_EXTRA_CONF_FILE=<extra_conf_file>`` flag to your west build command. |
| 206 | +Multiple extra configuration files can be combined by separating them with a semicolon, for example: |
| 207 | + |
| 208 | +.. code-block:: console |
| 209 | +
|
| 210 | + west build -p -b nrf7120dk/nrf7120/cpuapp --sysbuild -- -Dhttp_server_EXTRA_CONF_FILE="wifi.conf;wifi-tls.conf" |
201 | 211 |
|
202 | 212 | Building and running |
203 | 213 | ******************** |
@@ -331,6 +341,9 @@ Modem traces can be enabled by providing a snippet with the west build command a |
331 | 341 |
|
332 | 342 | west build -p -b nrf9161dk/nrf9161/ns -- -Dhttp_server_SNIPPET="nrf91-modem-trace-uart" |
333 | 343 |
|
| 344 | +If you have issues with connectivity on nRF71 Series or nRF70 Series devices, see the :ref:`wifi_monitor_sample` sample documentation to learn how to capture and analyze Wi-Fi traffic in order to debug connectivity issues. |
| 345 | +Also verify that the Wi-Fi credentials configured for your device match your access point, as described in the `Configuration options`_ section on this page. |
| 346 | + |
334 | 347 | Dependencies |
335 | 348 | ************ |
336 | 349 |
|
|
0 commit comments