Apps     Components     Interfaces     All Files     Source Tree     source: tos.platform.mica.SnoozeC.nc

Component: SnoozeC

Implementation of the Snooze component for the Mica platform.
Author: Joe Polastre
  Rob Szewczyk

Provided Interfaces

Variables

Function Index

Function Descriptions

Snooze.snooze

async command result_t Snooze.snooze (uint16_t length)

Triggers the mote to put itself in a low power sleep state for a specified amount of time.

Parameters:

length - Length of the low power sleep in units of 1/32 of a second. For example, length=32 would snooze for 1 second, length=32*5 would snooze for 5 seconds. If length=0, the mote will snooze for 4 seconds (this is the default snooze time).

Returns: SUCCESS if the mote is about to enter the sleep state