Post topics, source code that relate to the Arduino Platform

User avatar
By remcohn
#20511 on nurdspace, i found this:
Saving mode DTIM 1 1.2 mA
Saving mode DTIM 3 0.86 mA

was kinda hoping to get there :)
the ESP-01 doesnt have its WAKE nor GPIO16 exposed, so cant try those sleepmodes yet, but if i read it correct, those disconnect wifi ?
User avatar
By Alex P
#21518
remcohn wrote:on nurdspace, i found this:
Saving mode DTIM 1 1.2 mA
Saving mode DTIM 3 0.86 mA

was kinda hoping to get there :)
the ESP-01 doesnt have its WAKE nor GPIO16 exposed, so cant try those sleepmodes yet, but if i read it correct, those disconnect wifi ?


Isn't DTIM something one sets on the AP?

Yes, deepsleep turns off everything except for the RTC, so if you are unlucky to have bought an ESP-1 without the gpio16 and reset you are sh*t out of luck on that front my friend. However, you might want to look into wifi sleep modes - light sleep and modem sleep.
User avatar
By Angelo Santagata
#22094 Noob question

on a different thread I was pointed to this forum entry on sleep modes http://bbs.espressif.com/viewtopic.php?f=21&t=645

Now I know the Arduino API supports deepSleep but I dont see anything referencing modem sleep or light sleep.. How do you activate these using arduino sketches?
User avatar
By willfly
#23292
Angelo Santagata wrote:Noob question

on a different thread I was pointed to this forum entry on sleep modes http://bbs.espressif.com/viewtopic.php?f=21&t=645

Now I know the Arduino API supports deepSleep but I dont see anything referencing modem sleep or light sleep.. How do you activate these using arduino sketches?



Code: Select allextern "C" {
  #include "user_interface.h"
}

wifi_set_sleep_type(LIGHT_SLEEP_T);


Light sleep is set as a default. So your STA mode ESP is already using light sleep. Soft AP mode disables sleep.