Battery.WaitForEvent Method
Pauses execution for a specified amount of time and waits for a battery event.
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)
Syntax
[MethodImplAttribute]
public static bool WaitForEvent (
int timeout
)
Parameters
- timeout
The amount of time you want the system to wait for a battery event, in clocks ticks.
Return Value
true if a battery event occurs within the specified amount of time; otherwise, false.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.
See Also
Reference
Battery Class
Battery Members
Microsoft.SPOT.Hardware Namespace