@@ -26,9 +26,9 @@ module.exports = function (RED) {
2626 const connectionConfig = RED . nodes . getNode ( config . connection ) ;
2727 this . status ( { } ) ;
2828 this . lastValue = undefined ;
29+ this . organization = config . organization ;
2930 if ( connectionConfig && config . thing !== "" && config . thing !== "0" && config . property !== "" && config . property !== "0" ) {
3031 try {
31-
3232 this . thing = config . thing ;
3333 this . propertyId = config . property ;
3434 this . propertyName = config . propname ;
@@ -78,6 +78,7 @@ module.exports = function (RED) {
7878 this . arduinoRestClient = await connectionManager . getClientHttp ( connectionConfig ) ;
7979 if ( this . arduinoRestClient ) {
8080 this . arduinoRestClient . openConnections ++ ;
81+ this . organization = config . organization ;
8182 this . thing = config . thing ;
8283 this . propertyId = config . property ;
8384 this . propertyName = config . name ;
@@ -149,6 +150,7 @@ module.exports = function (RED) {
149150 if ( this . arduinoRestClient ) {
150151 this . arduinoRestClient . openConnections ++ ;
151152 if ( config . thing !== "" && config . property !== "" ) {
153+ this . organization = config . organization ;
152154 this . thing = config . thing ;
153155 this . propertyId = config . property ;
154156 this . propertyName = config . name ;
@@ -242,6 +244,7 @@ module.exports = function (RED) {
242244 if ( this . arduinoRestClient ) {
243245 this . arduinoRestClient . openConnections ++ ;
244246 if ( config . thing !== "" && config . property !== "" ) {
247+ this . organization = config . organization ;
245248 this . thing = config . thing ;
246249 this . propertyId = config . property ;
247250 this . propertyName = config . name ;
@@ -326,6 +329,7 @@ module.exports = function (RED) {
326329 this . arduinoRestClient = await connectionManager . getClientHttp ( connectionConfig ) ;
327330 if ( this . arduinoRestClient ) {
328331 this . arduinoRestClient . openConnections ++ ;
332+ this . organization = config . organization ;
329333 this . thing = config . thing ;
330334 this . propertyId = config . property ;
331335 this . propertyName = config . name ;
0 commit comments