esp8266 wifi example

Example 1: esp8266 wifi example

client.println("<style>html { font-family: Helvetica; display: inline-block; margin: 0px auto; text-align: center;}");

Example 2: esp8266 wifi example

// Assign output variables to GPIO pins
const int output5 = 5;
const int output4 = 4;

Example 3: esp8266 wifi example

// Auxiliar variables to store the current output state
String output5State = "off";
String output4State = "off";

Example 4: esp8266 wifi example

client.println("<link rel=\"icon\" href=\"data:,\">");

Example 5: esp8266 wifi example

String header;

Example 6: esp8266 wifi example

// Set web server port number to 80
WiFiServer server(80);

Example 7: esp8266 wifi example

const char* ssid = "";
const char* password = "";

Example 8: esp8266 wifi example

// Load Wi-Fi library
#include <ESP8266WiFi.h>

Example 9: esp8266 wifi example

client.println("<head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">");

Example 10: esp8266 wifi example

<!DOCTYPE html><html>

Tags:

C Example