poco.sdk.interfaces.command module

class CommandInterface[source]

Bases: 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)[source]

Emit a command to remote runtime (target device).

Parameters:
  • cmd – any json serializable data.

  • type (str) – a string value indicated the command type (command tag).

Returns:

None (recommended).