pub enum Command {
On,
OnFast,
Off,
OffFast,
Ping,
VersionQuery,
CancelLinking,
StartLinking,
StatusRequest,
Beep,
Other(u8),
None,
}
Expand description
A Command (two, actually) is sent in a Message. This type has some commonly used ones, but you can send arbitrary values via Command::Other.
Variants§
On
When sent to a device, turns the device on. When received, it indicates that the device was turned on by manipulation.
OnFast
When sent to a device, turns the device on faster, e.g. no ramping. When received, it indicates that the device performed a “fast on”, usually by a double-tapped switch.
Off
When sent to a device, turns the device off. When received, it indicates that the device was turned off by manipulation.
OffFast
When sent to a device, turns the device off faster, e.g. no ramping. When received, it indicates that the device performed a “fast off”, usually by a double-tapped switch.
Ping
Ping the device.
VersionQuery
Retrieves the protocol version information.
CancelLinking
Cancels linking mode for the device.
StartLinking
Starts linking mode for the device.
StatusRequest
Queries the status of the device.
Beep
Causes the device to beep once.
Other(u8)
Arbitrary commands not covered by one of the cases above.