poco.sdk.interfaces.command module

class CommandInterface[源代码]


This is one of the main communication interfaces. This interface defines command-level behaviours providing abilities to control remote runtime by sending self-defined command. The provided command can be various type - from string type to specific structure of a dict.

command(cmd, type)[源代码]

Emit a command to remote runtime (target device).

  • cmd – any json serializable data.
  • type (str) – a string value indicated the command type (command tag).

None (recommended).