Created
February 6, 2022 03:58
-
-
Save ajangrahmat/fffdb52cce66c3928dcbd97926b4ca63 to your computer and use it in GitHub Desktop.
Simple ESP32 Connect to WiFi Network with Arduino IDE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<WiFi.h> | |
const char* ssid = "Wokwi-GUEST"; | |
const char* pass = ""; | |
void setup(){ | |
Serial.begin(115200); | |
WiFi.begin(ssid, pass); | |
while(WiFi.status() != WL_CONNECTED){ | |
delay(100); | |
Serial.println("."); | |
} | |
Serial.println("WiFi Connected!"); | |
Serial.println(WiFi.localIP()); | |
} | |
void loop(){ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment