node-red-contrib-uos-nats 0.2.101 → 0.2.102
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/lib/payloads.js +6 -0
- package/package.json +1 -1
package/lib/payloads.js
CHANGED
|
@@ -259,6 +259,9 @@ import { ReadProvidersQueryResponse } from './fbs/weidmueller/ucontrol/hub/read-
|
|
|
259
259
|
import { ReadProviderDefinitionQueryResponse } from './fbs/weidmueller/ucontrol/hub/read-provider-definition-query-response.js';
|
|
260
260
|
import { VariableList } from './fbs/weidmueller/ucontrol/hub/variable-list.js';
|
|
261
261
|
export function decodeProviderList(bb) {
|
|
262
|
+
if (bb instanceof Uint8Array) {
|
|
263
|
+
bb = new flatbuffers.ByteBuffer(bb);
|
|
264
|
+
}
|
|
262
265
|
const response = ReadProvidersQueryResponse.getRootAsReadProvidersQueryResponse(bb);
|
|
263
266
|
const list = response.providers();
|
|
264
267
|
if (!list)
|
|
@@ -273,6 +276,9 @@ export function decodeProviderList(bb) {
|
|
|
273
276
|
return result;
|
|
274
277
|
}
|
|
275
278
|
export function decodeProviderDefinition(bb) {
|
|
279
|
+
if (bb instanceof Uint8Array) {
|
|
280
|
+
bb = new flatbuffers.ByteBuffer(bb);
|
|
281
|
+
}
|
|
276
282
|
const response = ReadProviderDefinitionQueryResponse.getRootAsReadProviderDefinitionQueryResponse(bb);
|
|
277
283
|
const def = response.providerDefinition();
|
|
278
284
|
if (!def)
|
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.102",
|
|
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",
|