poco.sdk.interfaces.command module

class CommandInterface[源代码]

基类:object

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).