From 95102530f175f486d22888f5ccac78c6d7d383a3 Mon Sep 17 00:00:00 2001 From: hidetak Date: Tue, 18 Jun 2024 18:13:27 +0900 Subject: [PATCH] fix create wot consumer plugin bug for observe property --- node-red-node-wot/plugin-resources-src/node-wot-plugin-lib.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node-red-node-wot/plugin-resources-src/node-wot-plugin-lib.ts b/node-red-node-wot/plugin-resources-src/node-wot-plugin-lib.ts index 6d53720..dc3c2ab 100644 --- a/node-red-node-wot/plugin-resources-src/node-wot-plugin-lib.ts +++ b/node-red-node-wot/plugin-resources-src/node-wot-plugin-lib.ts @@ -88,6 +88,7 @@ export const createClientFlowUsingDashboard = (tdString: string, existedNodes: a ...commonParams, propertyName, propertyDescription: tdProperty.description, + propertyObserve: tdProperty.observable, inputMode: DATATYPES[tdProperty.type || "propertyTypeNull"].inputMode, convert: DATATYPES[tdProperty.type || "propertyTypeNull"].typeConvert, } @@ -595,7 +596,7 @@ const PROPERTY_READ_TEMP = `[ "thing": "<%common-genid(1)%>", "property": "<%propertyName%>", "uriVariables": "{}", - "observe": true, + "observe": <%propertyObserve%>, "x": 480, "y": <%y1%>, "wires": [