|
RobotKit API
|
Class that encapsulates a go to sleep command. More...
#import <RKGoToSleepCommand.h>
Public Member Functions | |
| (id) | - initWithWakeUpTimeInterval:macroId: |
Static Public Member Functions | |
| (void) | + sendCommandWithWakeUpTimeInterval:macroId: |
Class that encapsulates a go to sleep command which can be sent to a robot to have it sleep until the user wakes it or for a given time interval.
| - (id) initWithWakeUpTimeInterval: | (RKSleepTimeInterval) | interval | |
| macroId: | (uint8_t) | identifier | |
Initializer for the Class which allows for a sleep interval to be set and a system macro to be ran upon waking.
| interval | The time in seconds to sleep, or 0 for an indefinite time. |
| identifier | A system macro id to run upon awaking. This has no effect if the time interval is set to 0. |
| + (void) sendCommandWithWakeUpTimeInterval: | (RKSleepTimeInterval) | interval | |
| macroId: | (uint8_t) | identifier | |
Convience method that creates a RKGoToSleepCommand instance and uses RKDeviceMessenger to send the command to the robot.
| interval | The time in seconds to sleep, or 0 for an indefinite time. |
| identifier | A system macro id to run upon awaking. This has no effect if the time interval is set to 0. |
1.7.4