Gbox 4.20
Grow box automation and monitoring - <a href='https://sites.google.com/site/growboxguy/'>https://sites.google.com/site/growboxguy/</a>
 
Loading...
Searching...
No Matches
webserver_led.ino File Reference
#include <ELClient.h>
#include <ELClientWebServer.h>

Go to the source code of this file.

Macros

#define LED_PIN   13
 

Functions

void ledPageLoadAndRefreshCb (char *url)
 
void ledButtonPressCb (char *btnId)
 
void resetCb (void)
 
void setup ()
 
void loop ()
 

Variables

ELClient espSerial
 
ELClientWebServer webServer & esp
 

Macro Definition Documentation

◆ LED_PIN

#define LED_PIN   13

Simple example for LED flashing using web-server

Test board: ESP8266 RX <–level shifter--> Arduino TX ESP8266 TX <–level shifter--> Arduino RX ESP8266 GPIO0 <–level shifter--> Arduino RESET (optional)

Arduino LED is on PIN 13

Video: https://www.youtube.com/watch?v=vBESCO0UhYI

Definition at line 19 of file webserver_led.ino.

Function Documentation

◆ ledButtonPressCb()

void ledButtonPressCb ( char *  btnId)

Definition at line 38 of file webserver_led.ino.

Here is the caller graph for this function:

◆ ledPageLoadAndRefreshCb()

void ledPageLoadAndRefreshCb ( char *  url)

Definition at line 30 of file webserver_led.ino.

Here is the caller graph for this function:

◆ loop()

void loop ( )

Definition at line 74 of file webserver_led.ino.

◆ resetCb()

void resetCb ( void  )

Definition at line 49 of file webserver_led.ino.

Here is the caller graph for this function:

◆ setup()

void setup ( )

Definition at line 61 of file webserver_led.ino.

Here is the call graph for this function:

Variable Documentation

◆ esp

ELClientWebServer webServer& esp

Definition at line 28 of file webserver_led.ino.

◆ Serial

ELClient esp& Serial

Definition at line 25 of file webserver_led.ino.