Control a Relay From Anywhere Using the ESP8266

As I was building more and more home automation projects using the ESP8266 WiFi chip, I was looking for a simple solution to control my ESP8266 projects remotely. I wanted to be able to control my projects not only from my local WiFi network, but from anywhere in the world, simply by using a web browser. I found many solutions, but none of them were really suited to my requirements. As you might know, I developed my own library called aREST to control most of the wireless projects I make. Therefore, I decided to modify this library to be able to control projects from outside of a local WiFi network. In this article, I will share those new features of aREST with you, and show you how to control a simple relay from anywhere. You will then be able to adapt the project to control any home appliance from anywhere in the world. Lets dive in!”