Post your best Lua script examples here

User avatar
By GeoNomad
#4956 To use node.dsleep() you have to jumper pin 8 to pin 32 on the board.

https://github.com/nodemcu/nodemcu-firm ... nodedsleep

As far as I know, none of the boards have this option.

I tried to solder a jumper, but my hands, eyes and soldering iron are all too old for this newfangled stuff.

I am getting a friend to do one so I can try. I am curious whether the restart is a complete reboot requiring loading of variables from flash, or if variables are preserved automatically.

But it looks like a great option for battery operated projects.

Peter
User avatar
By zeroday
#5143
GeoNomad wrote:To use node.dsleep() you have to jumper pin 8 to pin 32 on the board.

https://github.com/nodemcu/nodemcu-firm ... nodedsleep

As far as I know, none of the boards have this option.

I tried to solder a jumper, but my hands, eyes and soldering iron are all too old for this newfangled stuff.

I am getting a friend to do one so I can try. I am curious whether the restart is a complete reboot requiring loading of variables from flash, or if variables are preserved automatically.

But it looks like a great option for battery operated projects.

Peter


That's a hard reset, like power on.