Machine to machine communication with 2 ESP8266 WIFIs to the cloud.
Now we will add to the simple Basic example of a switch input client to an LED display client.
ESP8266 Button > IFTTT > Adafruit IO >ESP8266 LED
The ESP8266 Button will wait and read a button toggle state change and then send a changed value to IFTTT.
The IFTTT event will send the change to the Adafruit IO.
The Adafruit IO will then send the change to the ESP8266 LED.
The ESP8266 LED will then change the LED status.
First you need to get an Adafruit account and copy the AIO key
Create the FEED ( needed for IFTTT ) and Dashboard with Blocks.
( Free Plan per account 30 data points per minute, 30 days of data storage, 10 feeds, & 5 dashboards )
Then create a free IFTTT account.
Create an IFTTT Webhook event to send to Adafruit.
Create the Adafruit Dashboard , Feed , & Block ( Toggle Button or Gauge ).
Modify the included programs with your wifi and cloud account information and upload to each ESP.
You can use the Arduino IDE after you make the needed changes as explained in :
The ESP8266 Button is wired with a toggle switch to D4 input pin GPIO2 and a 1K to 10K resistor to ground.
The ESP8266 LED is wired to D4 input pin GPIO2 with 1K resistor inline with an LED to ground.