esp8266 module arduino code example
Example 1: esp8266 arduino
#include
void setup()
{
Serial.begin(115200);
Serial.println();
WiFi.begin("network-name", "pass-to-network");
Serial.print("Connecting");
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
Serial.println();
Serial.print("Connected, IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {}
Example 2: esp8266 arduino
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
}