Skip to content

Instantly share code, notes, and snippets.

@diogopms
Created February 15, 2018 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diogopms/a2ce64459f949e6f723bbafd78d46d5f to your computer and use it in GitHub Desktop.
Save diogopms/a2ce64459f949e6f723bbafd78d46d5f to your computer and use it in GitHub Desktop.
issue_wifi_esp32.ino
#include <Arduino.h>
#include <WiFi.h>
void setup()
{
Serial.begin(9600);
delay(10);
Serial.print("Connecting");
WiFi.begin("SSID", "PASSWORD");
while (WiFi.status() != WL_CONNECTED) {
delay(100);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
void loop()
{
delay(5000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment