Return to Pattern Library
Wi-Fi
Connect to Wi-Fi and make an HTTP request
Requires the Temboo extension.
Platform

Nordic

Open in VS Code
Join a Wi-Fi network in station mode and perform a basic outbound HTTP request, confirming network stack bring-up and connectivity.
Applies when
Use this pattern when bringing up Wi-Fi connectivity for the first time on a Nordic target with a Wi-Fi radio, before layering on TLS, MQTT, OTA, or cloud SDK integrations that depend on a working network stack. Requires an nRF70-series Wi-Fi companion (e.g. an nRF7002 DK, or an nRF7002 EK paired with a supported development kit); nRF52 devices have no Wi-Fi radio on their own.
Show pattern details
Hide pattern details
Intent
Implement firmware that initializes the Wi-Fi stack in station (STA) mode, connects to a configured access point, obtains an IP address via DHCP, and performs a simple outbound HTTP GET request to a known endpoint, confirming network connectivity end-to-end on the target.
Expectation
The device successfully associates with the configured Wi-Fi network, obtains a valid IP address, and completes an HTTP GET request receiving a 200-range response, all without repeated reconnect loops or stack errors.
Success criteria
Device obtains an IP address within 15 seconds of boot, and the HTTP GET request receives a response with status code in the 200-299 range, with no repeated disconnect/reconnect cycles logged.
How it is verified
Observe console logs for successful association, DHCP IP assignment, and HTTP response status code. Confirm the device does not enter a reconnect loop and that the HTTP request completes within a reasonable timeout (e.g. 10s).