Interface AntPlusGenericControllableDevicePcc.IGenericCommandReceiver
- Enclosing class:
- AntPlusGenericControllableDevicePcc
public static interface AntPlusGenericControllableDevicePcc.IGenericCommandReceiver
Receiver for the GenericCommand event, which is:
Generic commands received from a remote control device.
-
Method Summary
Modifier and TypeMethodDescriptiononNewGenericCommand
(long estTimestamp, EnumSet<EventFlag> eventFlags, int serialNumber, int manufacturerID, int sequenceNumber, GenericCommandNumber commandNumber) Receives the data from a GenericCommand event.
-
Method Details
-
onNewGenericCommand
CommandStatus onNewGenericCommand(long estTimestamp, EnumSet<EventFlag> eventFlags, int serialNumber, int manufacturerID, int sequenceNumber, GenericCommandNumber commandNumber) Receives the data from a GenericCommand event.- Parameters:
estTimestamp
- The estimated timestamp of when this event was triggered. Useful for correlating multiple events and determining when data was sent for more accurate data records.eventFlags
- Informational flags about the event.serialNumber
- The serial number of the remote control device.manufacturerID
- ANT+ Alliance managed manufacturer identifier of the remote controlsequenceNumber
- Sequence number which increments with each new command Rollover: Every 255.commandNumber
- The requestedGenericCommandNumber
- Returns:
- The
CommandStatus
of the received command. Subscribers can indicate whether the command was successful or not, etc.
-