Documentation
    Preparing search index...

    Class Device<SerialNumber, ParsedProperties>Abstract

    Device abstract class.

    Type Parameters

    • SerialNumber extends string
    • ParsedProperties

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    restClient: RestClient

    Methods

    • Sends a command with the given payload.

      Parameters

      • payload: any
      • schema: ZodTypeAny

      Returns Promise<
          | {
              code: "0";
              eagleEyeTraceId: string;
              message: "Success";
              tid: string;
          }
          | { code: string; eagleEyeTraceId: string; message: string; tid: string },
      >