Hierarchy

Constructors

Methods

  • Create or edit param for the Device in network

    Parameters

    • deviceID: string

      Device ID

    • configObj: Partial<ConfigurationParams>

      Configuration Data

    • Optional paramID: string

      Parameter ID

    Returns Promise<string>

  • Publish a message to the MQTT relay

    Parameters

    • options: {
          device: string;
          message?: string;
          qos?: number;
          retain?: boolean;
          topic: string;
      }

      Options for publishing the message

      • device: string

        The device to publish to (optional)

      • Optional message?: string

        The message to publish (optional)

      • Optional qos?: number

        Quality of Service level (optional)

      • Optional retain?: boolean

        Whether to retain the message (optional)

      • topic: string

        The topic to publish to

    Returns Promise<string>

    A promise that resolves when the message is published

  • Get a valid token using token serie

    Parameters

    • serieNumber: string
    • Optional authorization: string

    Returns Promise<string>