@espressif/rainmaker-base-cdf
    Preparing search index...

    Implements

    Index

    Constructors

    Properties

    _raw: any
    adaptorIdentifier?: string
    devicesCount: number
    enabled?: boolean
    flags?: number
    id: string
    info?: string
    name: string
    nodes: string[]
    outOfSyncMeta?: Record<string, any>

    Methods

    • Adds out-of-sync metadata for a specific node

      This method stores metadata indicating that a node's schedule configuration is not synchronized with the server state.

      Parameters

      • nodeId: string

        The identifier of the node

      • value: any

        The metadata value to store

      Returns void

      schedule.addOutOfSyncMeta('node1', { lastSync: timestamp });
      
    • Clears all out-of-sync metadata

      This method removes all stored metadata about node synchronization status, effectively marking all nodes as synchronized.

      Returns void

      schedule.clearOutOfSyncMeta();
      
    • Retrieves out-of-sync metadata for a specific node

      Parameters

      • nodeId: string

        The identifier of the node

      Returns any

      The stored metadata for the node

      const syncStatus = schedule.getOutOfSyncMeta('node1');
      
    • Removes out-of-sync metadata for a specific node

      This method clears the stored metadata indicating that a node's schedule configuration has been synchronized.

      Parameters

      • nodeId: string

        The identifier of the node

      Returns void

      schedule.removeOutOfSyncMeta('node1');