ESP32: WiFi connect
Jump to navigation
Jump to search
/* * ESP32 WiFi Connect */ #include <WiFi.h> const char* ssid = "o1"; const char* password = "Dzaq1993!"; void setup() { Serial.begin(115200); Serial.print("Connecting to "); Serial.println(ssid); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } // Print local IP address and start web server Serial.println(""); Serial.println("WiFi connected."); Serial.println("IP address: "); Serial.println(WiFi.localIP()); } void loop() { }