connect-sdk / de.proglove.sdk.commands / PgCommand / <init>
<init>
PgCommand(commandData: T, commandParams:
PgCommandParams
= PgCommandParams())
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.