public static class CapabilityMotorControl.Pan extends Command<CapabilityMotorControl.CommandId>
Capability.sendResourceCommand(buzz.getcoco.iot.Command<T>, buzz.getcoco.iot.Capability.CommandStatusListener<T>) to pan Resource such as camera.Command.State| Modifier and Type | Field and Description |
|---|---|
int |
degree
number of degrees (0-360) to rotate.
|
CapabilityMotorControl.PanDirection |
direction
The direction to move.
|
int |
speed
The speed to move (0-1000), use -1 for default speed.
|
| Constructor and Description |
|---|
Pan()
A no-arg constructor to create pan command for motor control.
|
getCommandId, getTimeout, setCommandId, setTimeout, toJsonObject, toString@SerializedName(value="direction") public CapabilityMotorControl.PanDirection direction
@SerializedName(value="degree") public int degree
@SerializedName(value="speed") public int speed