homieiot / homie-esp8266

💡 ESP8266 framework for Homie, a lightweight MQTT convention for the IoT
http://homieiot.github.io/homie-esp8266
MIT License
1.36k stars 308 forks source link

Unable to compile deepsleep sketch #298

Closed 466 closed 7 years ago

466 commented 7 years ago

I am trying to get my ESP into deep sleep mode, but atm. I am unable to do so.

Using the deepsleep example from https://homie-esp8266.readme.io/v2.0.0/docs/deep-sleep with an up to date download of homie's development branch, trying to compile the sketch results in

no matching function for call to 'EspClass::deepSleep()'

Complete Arduino IDE, output: http://pastebin.com/JUQkP6Sj

Did i miss installing some new / other libs? Or anything like that? :)

Btw. how can i tell the ESP to wake up from deep sleep after a (pre-)defined period of time? (with a disabled built in led, if it's at GPIO16)

benzino77 commented 7 years ago

Have a look here

marvinroger commented 7 years ago

Indeed, it's ESP.deepSleep, not EspClass.deepSleep. You will easily find examples for deep sleep on Google. 😉