The use of the ESP8266 in the world of IoT

User avatar
By ilges
#40451 Hey!

I'm new in this forum and with ESP8266.

Actually, I bought to use with arduino, but I found many possibilities using only it.

Well, this is what I want to do with the ESP8266.

I have this model: Image

And I want to control it to turn a socket ON/OFF through web.

My idea is to connect the ESP8266 to the local wifi, search in a online database which will contain the time that the socket will be ON or OFF.

This data from the database need to be stored in the memory of the module, just for safety.

My question is:

Can I use the ESP8266 with a RTC ds1307, to access the database and control the relay?
User avatar
By ilges
#40500 Those Sonoff - WiFi have the functionality I need, but how it works if for some reason my internet connection is not working?

I need this relays working properly even if I've got no internet, and even if my energy goes off for a while. For this reason I would need the RTC, to make sure that the relay will work at the programmed times.