I would like to create a simple DIY protocol for my ESP8266 which will work as a smart home. I would like the ESP8266 always be connected to the webserver which will run on my computer which will get data from the webserver and to run the ESP8266 as a webserver which will be able to send data to the PC web server. I want to be able to control it from all over the world and as close to real time. What should I do and what should I use? Do you have any example or code for me?
Huge thanks!!