connect-sdk / de.proglove.sdk.commands / PgCommand
PgCommand
data class PgCommand<T>
A PgCommand is used to send a command to a connected device through PgConnect. Note: All commandData that was also available before sdk version 1.1.0 implement the IPgCommandData interface. This interface provides the IPgCommandData.toCommand method to wrap the commandData in a PgCommand with the same functionality.
Constructors
Name | Summary |
---|---|
<init> | A PgCommand is used to send a command to a connected device through PgConnect. Note: All commandData that was also available before sdk version 1.1.0 implement the IPgCommandData interface. This interface provides the IPgCommandData.toCommand method to wrap the commandData in a PgCommand with the same functionality.PgCommand(commandData: T, commandParams: PgCommandParams = PgCommandParams()) |
Properties
Name | Summary |
---|---|
commandData | contains the intention of the command and it's associated data. This includes but is not limited to:val commandData: T |
commandParams | optional PgCommandParams which can affect how this command is executedval commandParams: PgCommandParams |