Tutorial: Hello Wi-Fi (EduESP32-S3)
Connect the EduESP32-S3 to a Wi-Fi network and perform an HTTP request.
Requirements
- EduESP32-S3
- Arduino IDE with the esp32 core
- A 2.4 GHz network SSID and password
Connect to Wi-Fi
#include <WiFi.h>
const char* WIFI_SSID = "YOUR_SSID";
const char* WIFI_PASS = "YOUR_PASSWORD";
void setup() {
Serial.begin(115200);
delay(500);
Serial.printf("Connecting to %s ", WIFI_SSID);
WiFi.mode(WIFI_STA);
WiFi.begin(WIFI_SSID, WIFI_PASS);
while (WiFi.status() != WL_CONNECTED) {
delay(300);
Serial.print(".");
}
Serial.println();
Serial.print("Connected, IP: ");
Serial.println(WiFi.localIP());
}
void loop() {}
HTTP GET request
#include <HTTPClient.h>
void fetchExample() {
if (WiFi.status() != WL_CONNECTED) return;
HTTPClient http;
http.begin("https://example.com/");
int code = http.GET();
Serial.printf("Status: %d\n", code);
if (code == 200) {
Serial.println(http.getString().substring(0, 200));
}
http.end();
}
Call fetchExample() periodically from loop().
Access Point mode
WiFi.mode(WIFI_AP);
WiFi.softAP("EduESP32-AP", "12345678");
Serial.println(WiFi.softAPIP()); // defaults to 192.168.4.1
Troubleshooting
- Won't connect: ensure the SSID is on 2.4 GHz; the ESP32-S3 does not support 5 GHz.
- Resets when associating: check the power supply — the Wi-Fi radio draws sharp current peaks.
Next step
Combine Wi-Fi + UART to build a wireless serial bridge.