Options accepted by ESPRMNeoDevice.getParams.

interface GetDeviceParamsOptions {
    cache?: boolean;
    timeout?: number;
}

Properties

Properties

cache?: boolean

Whether to use the local node-config cache for param values.

  • true (default): read this device's values from the cached node config in local storage (when present) and apply them onto ESPRMNeoDevice.params.
  • false: fetch live values via the best available transport (local control first when reachable, otherwise MQTT) and update each ESPRMNeoDeviceParam's value.
true
timeout?: number

Optional transport timeout in milliseconds (used when cache is false).