node-red-contrib-uos-nats 0.1.38 → 0.1.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -41,10 +41,11 @@ The config node automatically fetches tokens via Client Credentials flow.
41
41
  - Select the u-OS config node.
42
42
  - **Providers**: Click the **Refresh** button to list available providers. This list can be cached from the "Test Connection" button in the Config Node.
43
43
  - **Variables**: Select a provider, then click *Refresh* to load its variables. **Note:** To load variables, the Config Node **must be deployed** first!
44
- - **Polling (ms)**:
45
- - `0`: **Events only**. Efficient and fast.
46
- - `> 0`: **Hybrid Mode**. Receives events **AND** polls values every X ms.
47
- - **Troubleshooting**: If lists remain empty, check the Node-RED debug tab. Ensure your OAuth client has `hub.variables.readonly` permission.
44
+ - **Variables**: Select a provider, then click *Refresh* to load its variables. **Note:** To load variables, the Config Node **must be deployed** first!
45
+ - **Input Port Triggers**: The Input Node now accepts messages on its input port. Sending any message (e.g. from an **Inject** or **Timestamp** node) triggers an immediate snapshot of all values. This replaces the internal "Polling Interval" setting, giving you full control via standard Node-RED flows.
46
+ - **Troubleshooting**:
47
+ - If lists remain empty, check the Node-RED debug tab. Ensure your OAuth client has `hub.variables.readonly` permission.
48
+ - If you see API Error 500: The node will automatically fall back to NATS to fetch definitions. This ensures data access even if the REST API fails (e.g. due to reserved names).
48
49
 
49
50
  ## DataHub Output Node
50
51
 
package/lib/payloads.js CHANGED
@@ -97,9 +97,6 @@ export function decodeVariableList(list) {
97
97
  }
98
98
  return result;
99
99
  }
100
- return result;
101
- }
102
-
103
100
  // Added to support NATS-based definition fetching
104
101
  import { ReadProviderDefinitionQueryResponse } from './fbs/weidmueller/ucontrol/hub/read-provider-definition-query-response.js';
105
102
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-uos-nats",
3
- "version": "0.1.38",
3
+ "version": "0.1.40",
4
4
  "description": "Node-RED nodes for u-OS Data Hub via NATS",
5
5
  "repository": {
6
6
  "type": "git",