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