node-red-contrib-uos-nats 0.2.21 → 0.2.23
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/nodes/datahub-output.js
CHANGED
|
@@ -132,6 +132,9 @@ module.exports = function (RED) {
|
|
|
132
132
|
});
|
|
133
133
|
|
|
134
134
|
// Listen for Definition READ requests (Discovery)
|
|
135
|
+
// SKIPPED: Permission Violation on v1.loc.<id>.def.qry.read
|
|
136
|
+
// Data Hub seems to discover providers via initial announcement or direct variable reads.
|
|
137
|
+
/*
|
|
135
138
|
const defSub = nc.subscribe(subjects.readProviderDefinitionQuery(this.providerId), {
|
|
136
139
|
callback: (err, msg) => {
|
|
137
140
|
if (err) {
|
|
@@ -145,6 +148,7 @@ module.exports = function (RED) {
|
|
|
145
148
|
nc.publish(msg.reply, payload);
|
|
146
149
|
}
|
|
147
150
|
});
|
|
151
|
+
*/
|
|
148
152
|
|
|
149
153
|
// Track the subscription to close it later if needed (though existing code only tracks 'sub')
|
|
150
154
|
// Ideally we should track both or use a subscription manager, but for now let's hope 'sub' isn't the only one closed.
|
package/nodes/datahub-write.js
CHANGED
|
@@ -24,7 +24,7 @@ module.exports = function (RED) {
|
|
|
24
24
|
// Query provider definition
|
|
25
25
|
try {
|
|
26
26
|
const query = payloads.buildReadProviderDefinitionQuery();
|
|
27
|
-
const subject = `v1.loc.${providerId}.def.
|
|
27
|
+
const subject = `v1.loc.registry.providers.${providerId}.def.qry.read`;
|
|
28
28
|
|
|
29
29
|
const response = await nc.request(subject, query, { timeout: 3000 });
|
|
30
30
|
const definition = payloads.decodeProviderDefinition(response.data);
|
|
@@ -211,7 +211,7 @@ module.exports = function (RED) {
|
|
|
211
211
|
const payloads = await import(payloadModuleUrl);
|
|
212
212
|
|
|
213
213
|
const query = payloads.buildReadProviderDefinitionQuery();
|
|
214
|
-
const subject = `v1.loc.${providerId}.def.qry.read`;
|
|
214
|
+
const subject = `v1.loc.registry.providers.${providerId}.def.qry.read`;
|
|
215
215
|
|
|
216
216
|
// Request with timeout
|
|
217
217
|
const response = await nc.request(subject, query, { timeout: 3000 });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-uos-nats",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.23",
|
|
4
4
|
"description": "Node-RED nodes for Weidmüller u-OS Data Hub. Read, write, and provide variables via NATS protocol with OAuth2 authentication. Features: Variable Key resolution, custom icons, example flows, and provider definition caching.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "IoTUeli",
|