@@ -26,9 +26,9 @@ module.exports = function (RED) {
26
26
const connectionConfig = RED . nodes . getNode ( config . connection ) ;
27
27
this . status ( { } ) ;
28
28
this . lastValue = undefined ;
29
+ this . organization = config . organization ;
29
30
if ( connectionConfig && config . thing !== "" && config . thing !== "0" && config . property !== "" && config . property !== "0" ) {
30
31
try {
31
-
32
32
this . thing = config . thing ;
33
33
this . propertyId = config . property ;
34
34
this . propertyName = config . propname ;
@@ -78,6 +78,7 @@ module.exports = function (RED) {
78
78
this . arduinoRestClient = await connectionManager . getClientHttp ( connectionConfig ) ;
79
79
if ( this . arduinoRestClient ) {
80
80
this . arduinoRestClient . openConnections ++ ;
81
+ this . organization = config . organization ;
81
82
this . thing = config . thing ;
82
83
this . propertyId = config . property ;
83
84
this . propertyName = config . name ;
@@ -149,6 +150,7 @@ module.exports = function (RED) {
149
150
if ( this . arduinoRestClient ) {
150
151
this . arduinoRestClient . openConnections ++ ;
151
152
if ( config . thing !== "" && config . property !== "" ) {
153
+ this . organization = config . organization ;
152
154
this . thing = config . thing ;
153
155
this . propertyId = config . property ;
154
156
this . propertyName = config . name ;
@@ -242,6 +244,7 @@ module.exports = function (RED) {
242
244
if ( this . arduinoRestClient ) {
243
245
this . arduinoRestClient . openConnections ++ ;
244
246
if ( config . thing !== "" && config . property !== "" ) {
247
+ this . organization = config . organization ;
245
248
this . thing = config . thing ;
246
249
this . propertyId = config . property ;
247
250
this . propertyName = config . name ;
@@ -326,6 +329,7 @@ module.exports = function (RED) {
326
329
this . arduinoRestClient = await connectionManager . getClientHttp ( connectionConfig ) ;
327
330
if ( this . arduinoRestClient ) {
328
331
this . arduinoRestClient . openConnections ++ ;
332
+ this . organization = config . organization ;
329
333
this . thing = config . thing ;
330
334
this . propertyId = config . property ;
331
335
this . propertyName = config . name ;
0 commit comments