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
#!/bin/bash | |
#set -e | |
# install-wifi - 03/05/2021 - by MrEngman. | |
UPDATE_SELF=${UPDATE_SELF:-1} | |
UPDATE_URI="http://downloads.fars-robotics.net/wifi-drivers/install-wifi" | |
ROOT_PATH=${ROOT_PATH:-"/"} | |
WORK_PATH=${WORK_PATH:-"${ROOT_PATH}/root"} |
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
// https://www.instructables.com/id/Programming-a-HTTP-Server-on-ESP-8266-12E/ | |
#include <ESP8266WiFi.h> | |
const short int BUILTIN_LED1 = 2; //GPIO2 | |
const short int BUILTIN_LED2 = 16;//GPIO16 | |
#define LED_PIN BUILTIN_LED2 | |
WiFiServer server(80); //Initialize the server on Port 80 | |
void setup() { |