Chat freely about anything...

User avatar
By burton666
#25988 I would like to fit a battery powered ESP8266-01 behind a dummy wall-switch and have the ESP8266 send a REST command every time I toggle the switch. Would a rather small battery like cr2450 still be enough to make the switch run for +1year ? I would think that the switch would only be toggled a few times a day like <5.

Second question would be if the respons-time would be fast enough. From switch press I would like to have the ESP8266 to wake up and send REST command in <1sec. Is this possible?
User avatar
By tytower
#26012 Using deepSleep() and interupts you could wake the module when it senses a gpio is high and have it sleep for regular periods between being interupted so that part should be easy and the battery might last that long if you get it all right.

However you have a source of power right there . Could you not harness a wall wart inside the wall.