Skip to content

Instantly share code, notes, and snippets.

@ajangrahmat
Created February 6, 2022 03:58
Show Gist options
  • Save ajangrahmat/fffdb52cce66c3928dcbd97926b4ca63 to your computer and use it in GitHub Desktop.
Save ajangrahmat/fffdb52cce66c3928dcbd97926b4ca63 to your computer and use it in GitHub Desktop.
Simple ESP32 Connect to WiFi Network with Arduino IDE
#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