Power Off

tools.batteryoff( [seconds] )

Power off when running on batteries.

If seconds is provided, this will delay the power off.
Calling with seconds= -1 will abort the shutdown.

Parameter Type Description
seconds integer Number of seconds to shutdown. -1 aborts.