@ncd-io/node-red-enterprise-sensors 1.0.0 → 1.0.1
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/WirelessGateway.js +2911 -204
- package/package.json +1 -1
- package/wireless.html +127 -18
- package/wireless.js +303 -3
package/package.json
CHANGED
package/wireless.html
CHANGED
|
@@ -396,6 +396,24 @@
|
|
|
396
396
|
|
|
397
397
|
config_set_reg_active_539:{value:""},
|
|
398
398
|
config_set_reg_539:{value:50, validate: NCD_validators.number_range(0, 65534)},
|
|
399
|
+
|
|
400
|
+
mode_110_active: {value: ""},
|
|
401
|
+
mode_110: {value: 0},
|
|
402
|
+
|
|
403
|
+
auto_raw_interval_110_active:{value:""},
|
|
404
|
+
auto_raw_interval_110: {value: 0, validate: NCD_validators.number_range(0, 255)},
|
|
405
|
+
|
|
406
|
+
auto_raw_destination_110_active:{value:""},
|
|
407
|
+
auto_raw_destination_110: {value: '0000FFFF', validate: NCD_validators.number_range(0, 0xFFFFFFFF, 16)},//(0 - 0xFFFFFFFF)
|
|
408
|
+
|
|
409
|
+
clear_probe_uptimers_110_active:{value:""},
|
|
410
|
+
clear_probe_uptimers_110: {value:0},
|
|
411
|
+
|
|
412
|
+
smart_interval_110_active:{value:""},
|
|
413
|
+
smart_interval_110: {value: 0, validate: NCD_validators.number_range(0, 255)},
|
|
414
|
+
|
|
415
|
+
smart_threshold_110_active:{value:""},
|
|
416
|
+
smart_threshold_110: {value:0, validate: NCD_validators.number_range(0, 65534)}
|
|
399
417
|
},
|
|
400
418
|
inputs: 0,
|
|
401
419
|
outputs: 1,
|
|
@@ -487,8 +505,13 @@
|
|
|
487
505
|
"96": "96 - 16-Bit 1-Channel 0-48VDC Receiver",
|
|
488
506
|
"101": "101 - Pro Vibration",
|
|
489
507
|
"102": "102 - Strain Gauge",
|
|
508
|
+
"105": "105 - 1 Auto Luber With Ultrasound Vibration Sensor",
|
|
490
509
|
"107": "107 - 4 Channel 4-20mA Receiver",
|
|
491
510
|
"108": "108 - Machine Uptime Monitoring Sensor",
|
|
511
|
+
"110": "110 - One Channel Vibration Plus v4",
|
|
512
|
+
"111": "111 - Two Channel Vibration Plus v4",
|
|
513
|
+
"112": "112 - Condition Based/Predictive Maintenance Sensor v4",
|
|
514
|
+
"114": "114 - Standalone Smart Vibration Sensor v4",
|
|
492
515
|
"180": "180 - C1D2 One Channel Vibration Plus",
|
|
493
516
|
"181": "181 - C1D2 Two Channel Vibration Plus",
|
|
494
517
|
"200": "200 - 4-20mA Pass Through",
|
|
@@ -507,6 +530,7 @@
|
|
|
507
530
|
"535": "535 - Custom CO2 Sensor",
|
|
508
531
|
"537": "537 - Custom Standalone Smart Vibration Sensor",
|
|
509
532
|
"539": "539 - RS-485 Modbus Wireless Converter",
|
|
533
|
+
"540": "540 - Wireless Ultrasonic Flow Meter FD-Q32C",
|
|
510
534
|
"10000": "10000 - 4-Channel Relay",
|
|
511
535
|
"10006": "10006 - 4-Channel 4-20 mA Input",
|
|
512
536
|
"10007": "10007 - 4-Channel Current Monitor",
|
|
@@ -744,8 +768,13 @@
|
|
|
744
768
|
<option value="96">96 - 16-Bit 1-Channel 0-48VDC Receiver</option>
|
|
745
769
|
<option value="101">101 - Pro Vibration</option>
|
|
746
770
|
<option value="102">102 - Strain Gauge</option>
|
|
771
|
+
<option value="105">105 - 1 Auto Luber With Ultrasound Vibration Sensor</option>
|
|
747
772
|
<option value="107">107 - 4 Channel 4-20mA Receiver</option>
|
|
748
773
|
<option value="108">108 - Machine Uptime Monitoring Sensor</option>
|
|
774
|
+
<option value="110">110 - One Channel Vibration Plus v4</option>
|
|
775
|
+
<option value="111">111 - Two Channel Vibration Plus v4</option>
|
|
776
|
+
<option value="112">112 - Condition Based/Predictive Maintenance Sensor v4</option>
|
|
777
|
+
<option value="114">114 - Standalone Smart Vibration Sensor v4</option>
|
|
749
778
|
<option value="180">180 - C1D2 One Channel Vibration Plus</option>
|
|
750
779
|
<option value="181">181 - C1D2 Two Channel Vibration Plus</option>
|
|
751
780
|
<option value="200">200 - 4-20mA Pass Through</option>
|
|
@@ -764,6 +793,7 @@
|
|
|
764
793
|
<option value="535">535 - Custom CO2 Sensor</option>
|
|
765
794
|
<option value="537">537 - Custom Standalone Smart Vibration Sensor</option>
|
|
766
795
|
<option value="539">539 - RS-485 Modbus Wireless Converter</option>
|
|
796
|
+
<option value="540">540 - Wireless Ultrasonic Flow Meter FD-Q32C</option>
|
|
767
797
|
<option value="10000">10000 - 4-Channel Relay</option>
|
|
768
798
|
<option value="10006">10006 - 4-Channel 4-20 mA Input</option>
|
|
769
799
|
<option value="10007">10007 - 4-Channel Current Monitor</option>
|
|
@@ -777,13 +807,12 @@
|
|
|
777
807
|
<label for="node-input-auto_config"><i class="icon-tag"></i> Auto Config</label>
|
|
778
808
|
<input class="section-control" type="checkbox" id="node-input-auto_config" value="1">
|
|
779
809
|
</div>
|
|
780
|
-
<div class="form-row ncd-dependent" data-sensor-23 data-sensor-26 data-sensor-39 data-sensor-45 data-sensor-48 data-sensor-52 data-sensor-76 data-sensor-78 data-sensor-79 data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-88 data-sensor-89 data-sensor-90 data-sensor-91 data-sensor-101 data-sensor-102 data-sensor-107 data-sensor-108 data-sensor-180 data-sensor-181 data-sensor-519 data-sensor-520 data-sensor-521 data-sensor-531 data-sensor-535 data-sensor-537>
|
|
810
|
+
<div class="form-row ncd-dependent" data-sensor-23 data-sensor-26 data-sensor-39 data-sensor-45 data-sensor-48 data-sensor-52 data-sensor-76 data-sensor-78 data-sensor-79 data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-88 data-sensor-89 data-sensor-90 data-sensor-91 data-sensor-101 data-sensor-102 data-sensor-105 data-sensor-107 data-sensor-108 data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114 data-sensor-180 data-sensor-181 data-sensor-519 data-sensor-520 data-sensor-521 data-sensor-531 data-sensor-535 data-sensor-537 data-sensor-540>
|
|
781
811
|
<hr>
|
|
782
812
|
<label for="node-input-on_the_fly_enable"><i class="icon-tag"></i> OTF Config*</label>
|
|
783
813
|
<input type="checkbox" id="node-input-on_the_fly_enable" value="1">
|
|
784
814
|
<p class="caption">
|
|
785
815
|
*OTF: On The Fly.<br>This option allows for configuring the sensor without entering configuration mode.<br>
|
|
786
|
-
This option is in development and few configuration options are supported.
|
|
787
816
|
</p>
|
|
788
817
|
<hr>
|
|
789
818
|
</div>
|
|
@@ -1136,7 +1165,7 @@
|
|
|
1136
1165
|
</div>
|
|
1137
1166
|
</div>
|
|
1138
1167
|
</div>
|
|
1139
|
-
<div class="ncd-dependent" data-sensor-84 data-sensor-519 data-sensor-537>
|
|
1168
|
+
<div class="ncd-dependent" data-sensor-84 data-sensor-114 data-sensor-519 data-sensor-537>
|
|
1140
1169
|
<hr>
|
|
1141
1170
|
<div class="form-row ncd-active-check">
|
|
1142
1171
|
<strong>LED Alert Mode</strong>
|
|
@@ -1216,6 +1245,28 @@
|
|
|
1216
1245
|
</select>
|
|
1217
1246
|
</div>
|
|
1218
1247
|
</div>
|
|
1248
|
+
</div>
|
|
1249
|
+
<div class="ncd-dependent" data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114>
|
|
1250
|
+
<hr>
|
|
1251
|
+
<div class="form-row ncd-active-check">
|
|
1252
|
+
<strong>Mode</strong>
|
|
1253
|
+
<p>WARNING: If Mode is set to Raw it is recommended to also set the Destination Address configuration to the address of your Receiver/Gateway.</p>
|
|
1254
|
+
<div>
|
|
1255
|
+
<label for="node-input-mode_110_active"><i class="icon-tag"></i>Active:</label>
|
|
1256
|
+
<input type="checkbox" id="node-input-mode_110_active" class="ncd-config-toggle" data-target-id="node-input-mode_110" value="1">
|
|
1257
|
+
</div>
|
|
1258
|
+
<div>
|
|
1259
|
+
<label for="node-input-mode_110"><i class="icon-tag"></i>Value:</label>
|
|
1260
|
+
<select id="node-input-mode_110">
|
|
1261
|
+
<option value="0">Processed</option>
|
|
1262
|
+
<option value="1">Raw</option>
|
|
1263
|
+
<option value="2">Processed + Raw on demand</option>
|
|
1264
|
+
<option value="3">Smart</option>
|
|
1265
|
+
</select>
|
|
1266
|
+
</div>
|
|
1267
|
+
</div>
|
|
1268
|
+
</div>
|
|
1269
|
+
<div class="ncd-dependent" data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114 data-sensor-180 data-sensor-181 data-sensor-519 data-sensor-537>
|
|
1219
1270
|
<div class="form-row ncd-active-check">
|
|
1220
1271
|
<strong>Measurement Mode</strong>
|
|
1221
1272
|
<div>
|
|
@@ -1242,8 +1293,7 @@
|
|
|
1242
1293
|
</div>
|
|
1243
1294
|
</div>
|
|
1244
1295
|
</div>
|
|
1245
|
-
|
|
1246
|
-
<div class="ncd-dependent" data-sensor-80 data-sensor-82 data-sensor-84 data-sensor-101 data-sensor-102 data-sensor-180 data-sensor-519 data-sensor-537>
|
|
1296
|
+
<div class="ncd-dependent" data-sensor-80 data-sensor-82 data-sensor-84 data-sensor-101 data-sensor-102 data-sensor-110 data-sensor-112 data-sensor-114 data-sensor-180 data-sensor-519 data-sensor-537>
|
|
1247
1297
|
<hr>
|
|
1248
1298
|
<div class="form-row ncd-active-check">
|
|
1249
1299
|
<strong>Set Sampling Duration 1= 50msec, 2= 100msec</strong>
|
|
@@ -1258,7 +1308,7 @@
|
|
|
1258
1308
|
</div>
|
|
1259
1309
|
</div>
|
|
1260
1310
|
|
|
1261
|
-
<div class="ncd-dependent" data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-101 data-sensor-102 data-sensor-180 data-sensor-181 data-sensor-519 data-sensor-537>
|
|
1311
|
+
<div class="ncd-dependent" data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-101 data-sensor-102 data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114 data-sensor-180 data-sensor-181 data-sensor-519 data-sensor-537>
|
|
1262
1312
|
<hr>
|
|
1263
1313
|
<div class="form-row ncd-active-check">
|
|
1264
1314
|
<strong>Sampling Interval</strong>
|
|
@@ -1290,7 +1340,7 @@
|
|
|
1290
1340
|
</div>
|
|
1291
1341
|
</div>
|
|
1292
1342
|
|
|
1293
|
-
<div class="ncd-dependent" data-sensor-81 data-sensor-181>
|
|
1343
|
+
<div class="ncd-dependent" data-sensor-81 data-sensor-111 data-sensor-181>
|
|
1294
1344
|
<hr>
|
|
1295
1345
|
<div class="form-row ncd-active-check">
|
|
1296
1346
|
<strong>Probe 1: Output Data Rate</strong>
|
|
@@ -1359,7 +1409,8 @@
|
|
|
1359
1409
|
</div>
|
|
1360
1410
|
</div>
|
|
1361
1411
|
</div>
|
|
1362
|
-
|
|
1412
|
+
|
|
1413
|
+
<div class="ncd-dependent" data-sensor-80 data-sensor-82 data-sensor-84 data-sensor-102 data-sensor-110 data-sensor-112 data-sensor-114 data-sensor-180 data-sensor-519 data-sensor-537>
|
|
1363
1414
|
<hr>
|
|
1364
1415
|
<div class="form-row ncd-active-check">
|
|
1365
1416
|
<strong>Output Data Rate</strong>
|
|
@@ -1456,7 +1507,8 @@
|
|
|
1456
1507
|
</div>
|
|
1457
1508
|
</div>
|
|
1458
1509
|
</div>
|
|
1459
|
-
|
|
1510
|
+
|
|
1511
|
+
<div class="ncd-dependent" data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114 data-sensor-180 data-sensor-181 data-sensor-519 data-sensor-537>
|
|
1460
1512
|
<div class="form-row ncd-active-check">
|
|
1461
1513
|
<strong>Set Filtering</strong>
|
|
1462
1514
|
<div>
|
|
@@ -1526,7 +1578,8 @@
|
|
|
1526
1578
|
</div>
|
|
1527
1579
|
</div>
|
|
1528
1580
|
</div>
|
|
1529
|
-
|
|
1581
|
+
|
|
1582
|
+
<div class="ncd-dependent" data-sensor-81 data-sensor-111 data-sensor-181>
|
|
1530
1583
|
<div class="form-row ncd-active-check">
|
|
1531
1584
|
<strong>Set Low Pass Filter Probe 2</strong>
|
|
1532
1585
|
<p>
|
|
@@ -1583,7 +1636,7 @@
|
|
|
1583
1636
|
</div>
|
|
1584
1637
|
</div>
|
|
1585
1638
|
|
|
1586
|
-
<div class="ncd-dependent" data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-180 data-sensor-181 data-sensor-519 data-sensor-537>
|
|
1639
|
+
<div class="ncd-dependent" data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114 data-sensor-180 data-sensor-181 data-sensor-519 data-sensor-537>
|
|
1587
1640
|
<div class="form-row ncd-active-check">
|
|
1588
1641
|
<strong>Full Scale Range</strong>
|
|
1589
1642
|
<div>
|
|
@@ -1620,7 +1673,8 @@
|
|
|
1620
1673
|
</div>
|
|
1621
1674
|
</div>
|
|
1622
1675
|
</div>
|
|
1623
|
-
|
|
1676
|
+
|
|
1677
|
+
<div class="ncd-dependent" data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-101 data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114 data-sensor-180 data-sensor-181 data-sensor-519 data-sensor-537>
|
|
1624
1678
|
<div class="form-row ncd-active-check">
|
|
1625
1679
|
<strong>Set Dead Band in mg</strong>
|
|
1626
1680
|
<div>
|
|
@@ -1649,7 +1703,7 @@
|
|
|
1649
1703
|
</div>
|
|
1650
1704
|
</div>
|
|
1651
1705
|
|
|
1652
|
-
<div class="ncd-dependent" data-sensor-82>
|
|
1706
|
+
<div class="ncd-dependent" data-sensor-82 data-sensor-112>
|
|
1653
1707
|
<div class="form-row ncd-active-check">
|
|
1654
1708
|
<strong>Set Current Calibration Value</strong>
|
|
1655
1709
|
<div>
|
|
@@ -1663,7 +1717,7 @@
|
|
|
1663
1717
|
</div>
|
|
1664
1718
|
</div>
|
|
1665
1719
|
|
|
1666
|
-
<div class="ncd-dependent" data-sensor-14 data-sensor-45 data-sensor-48 data-sensor-52 data-sensor-88 data-sensor-89 data-sensor-107>
|
|
1720
|
+
<div class="ncd-dependent" data-sensor-14 data-sensor-45 data-sensor-48 data-sensor-52 data-sensor-88 data-sensor-89 data-sensor-105 data-sensor-107 data-sensor-540>
|
|
1667
1721
|
<div class="form-row ncd-active-check">
|
|
1668
1722
|
<strong>Sensor Boot Time</strong>
|
|
1669
1723
|
<p class="caption">
|
|
@@ -1698,7 +1752,7 @@
|
|
|
1698
1752
|
</div>
|
|
1699
1753
|
</div>
|
|
1700
1754
|
|
|
1701
|
-
<div class="ncd-dependent" data-sensor-3 data-sensor-14 data-sensor-45 data-sensor-48 data-sensor-52 data-sensor-88 data-sensor-89 data-sensor-107 data-sensor-200>
|
|
1755
|
+
<div class="ncd-dependent" data-sensor-3 data-sensor-14 data-sensor-45 data-sensor-48 data-sensor-52 data-sensor-88 data-sensor-89 data-sensor-105 data-sensor-107 data-sensor-200 data-sensor-540>
|
|
1702
1756
|
<div class="form-row ncd-active-check">
|
|
1703
1757
|
<strong>Low Calibration Point</strong>
|
|
1704
1758
|
<div>
|
|
@@ -1734,7 +1788,7 @@
|
|
|
1734
1788
|
</div>
|
|
1735
1789
|
</div>
|
|
1736
1790
|
|
|
1737
|
-
<div class="ncd-dependent" data-sensor-80 data-sensor-81 data-sensor-180 data-sensor-181 data-sensor-505 data-sensor-506>
|
|
1791
|
+
<div class="ncd-dependent" data-sensor-80 data-sensor-81 data-sensor-110 data-sensor-111 data-sensor-180 data-sensor-181 data-sensor-505 data-sensor-506>
|
|
1738
1792
|
<div class="form-row ncd-active-check">
|
|
1739
1793
|
<strong>Channel 1 Current Calibration Value</strong>
|
|
1740
1794
|
<p class="caption">
|
|
@@ -1752,7 +1806,7 @@
|
|
|
1752
1806
|
</div>
|
|
1753
1807
|
</div>
|
|
1754
1808
|
|
|
1755
|
-
<div class="ncd-dependent" data-sensor-81 data-sensor-181 data-sensor-506>
|
|
1809
|
+
<div class="ncd-dependent" data-sensor-81 data-sensor-111 data-sensor-181 data-sensor-506>
|
|
1756
1810
|
<div class="form-row ncd-active-check">
|
|
1757
1811
|
<strong>Channel 2 Current Calibration Value</strong>
|
|
1758
1812
|
<p class="caption">
|
|
@@ -1885,7 +1939,8 @@
|
|
|
1885
1939
|
</div>
|
|
1886
1940
|
</div>
|
|
1887
1941
|
</div>
|
|
1888
|
-
|
|
1942
|
+
|
|
1943
|
+
<div class="ncd-dependent" data-sensor-80 data-sensor-81 data-sensor-82 data-sensor-84 data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114 data-sensor-180 data-sensor-181 data-sensor-519 data-sensor-537>
|
|
1889
1944
|
<hr>
|
|
1890
1945
|
<div class="form-row ncd-active-check">
|
|
1891
1946
|
<strong>Payload Length</strong>
|
|
@@ -2051,6 +2106,60 @@
|
|
|
2051
2106
|
</div>
|
|
2052
2107
|
</div>
|
|
2053
2108
|
</div>
|
|
2109
|
+
|
|
2110
|
+
<div class="ncd-dependent" data-sensor-110 data-sensor-111 data-sensor-112 data-sensor-114>
|
|
2111
|
+
<div class="form-row ncd-active-check">
|
|
2112
|
+
<strong>Set Auto Raw Interval</strong>
|
|
2113
|
+
<div>
|
|
2114
|
+
<label for="node-input-auto_raw_interval_110_active">Active:</label>
|
|
2115
|
+
<input type="checkbox" id="node-input-auto_raw_interval_110_active" class="ncd-config-toggle" data-target-id="node-input-auto_raw_interval_110" value="1">
|
|
2116
|
+
</div>
|
|
2117
|
+
<div>
|
|
2118
|
+
<label for="node-input-auto_raw_interval_110"><i class="icon-tag"></i>Address:</label>
|
|
2119
|
+
<input type="text" id="node-input-auto_raw_interval_110" value="0">
|
|
2120
|
+
</div>
|
|
2121
|
+
</div>
|
|
2122
|
+
<div class="form-row ncd-active-check">
|
|
2123
|
+
<strong>Set Auto Raw Destination Address</strong>
|
|
2124
|
+
<div>
|
|
2125
|
+
<label for="node-input-auto_raw_destination_110_active">Active:</label>
|
|
2126
|
+
<input type="checkbox" id="node-input-auto_raw_destination_110_active" class="ncd-config-toggle" data-target-id="node-input-auto_raw_destination_110" value="1">
|
|
2127
|
+
</div>
|
|
2128
|
+
<div>
|
|
2129
|
+
<label for="node-input-auto_raw_destination_110"><i class="icon-tag"></i>Address:</label>
|
|
2130
|
+
<input type="text" id="node-input-auto_raw_destination_110" value="0000FFFF">
|
|
2131
|
+
</div>
|
|
2132
|
+
<p class="caption">
|
|
2133
|
+
Default value: 0000FFFF for Broadcast Mode<br>
|
|
2134
|
+
Example of targeted address: 41D5EC37
|
|
2135
|
+
</p>
|
|
2136
|
+
</div>
|
|
2137
|
+
<div class="form-row ncd-active-check">
|
|
2138
|
+
<strong>Clear Probe Uptimers</strong>
|
|
2139
|
+
<div>
|
|
2140
|
+
<label for="node-input-clear_probe_uptimers_110_active">Active:</label>
|
|
2141
|
+
<input type="checkbox" id="node-input-clear_probe_uptimers_110_active" class="ncd-config-toggle" data-target-id="node-input-clear_probe_uptimers_110" value="1">
|
|
2142
|
+
</div>
|
|
2143
|
+
<div>
|
|
2144
|
+
<label for="node-input-clear_probe_uptimers_110"><i class="icon-tag"></i>Value:</label>
|
|
2145
|
+
<select id="node-input-clear_probe_uptimers_110">
|
|
2146
|
+
<option value="0">Disabled</option>
|
|
2147
|
+
<option value="1">Enabled</option>
|
|
2148
|
+
</select>
|
|
2149
|
+
</div>
|
|
2150
|
+
</div>
|
|
2151
|
+
<div class="form-row ncd-active-check">
|
|
2152
|
+
<strong>Set Smart Mode Threshold</strong>
|
|
2153
|
+
<div>
|
|
2154
|
+
<label for="node-input-smart_threshold_110_active">Active:</label>
|
|
2155
|
+
<input type="checkbox" id="node-input-smart_threshold_110_active" class="ncd-config-toggle" data-target-id="node-input-smart_threshold_110" value="1">
|
|
2156
|
+
</div>
|
|
2157
|
+
<div>
|
|
2158
|
+
<label for="node-input-smart_threshold_110"><i class="icon-tag"></i>Value:</label>
|
|
2159
|
+
<input type="text" id="node-input-smart_threshold_110" value="1">
|
|
2160
|
+
</div>
|
|
2161
|
+
</div>
|
|
2162
|
+
</div>
|
|
2054
2163
|
</div>
|
|
2055
2164
|
</div>
|
|
2056
2165
|
</script>
|
package/wireless.js
CHANGED
|
@@ -598,13 +598,13 @@ module.exports = function(RED) {
|
|
|
598
598
|
}, 10000);
|
|
599
599
|
|
|
600
600
|
var promises = {};
|
|
601
|
-
|
|
601
|
+
// This command is used for OTF on types 53, 80,81,82,83,84, 101, 102, 110, 111, 518, 519
|
|
602
602
|
let original_otf_devices = [53, 80, 81, 82, 83, 84, 101, 102, 180, 181, 518, 519, 520];
|
|
603
603
|
if(original_otf_devices.includes(sensor.type)){
|
|
604
|
-
// This command is used for OTF on types 53, 80,81,82,83,84, 101, 102 , 518,519
|
|
604
|
+
// This command is used for OTF on types 53, 80, 81, 82, 83, 84, 101, 102, 110, 111, 518, 519
|
|
605
605
|
promises.config_enter_otn_mode = node.config_gateway.config_enter_otn_mode(sensor.mac);
|
|
606
606
|
}else{
|
|
607
|
-
// This command is used for OTF on types not 53, 80,81,82,83,84, 101, 102 , 518,519
|
|
607
|
+
// This command is used for OTF on types not 53, 80, 81, 82, 83, 84, 101, 102, 110, 111, 518, 519
|
|
608
608
|
promises.config_enter_otn_mode = node.config_gateway.config_enter_otn_mode_common(sensor.mac);
|
|
609
609
|
}
|
|
610
610
|
promises.finish = new Promise((fulfill, reject) => {
|
|
@@ -1217,6 +1217,20 @@ module.exports = function(RED) {
|
|
|
1217
1217
|
// }
|
|
1218
1218
|
// promises.set_rtc_101 = node.config_gateway.config_set_rtc_101(mac);
|
|
1219
1219
|
break;
|
|
1220
|
+
case 105:
|
|
1221
|
+
if(config.sensor_boot_time_420ma_active){
|
|
1222
|
+
promises.sensor_boot_time_420ma = node.config_gateway.config_set_sensor_boot_time_420ma(mac, parseInt(config.sensor_boot_time_420ma));
|
|
1223
|
+
}
|
|
1224
|
+
if(config.low_calibration_420ma_active){
|
|
1225
|
+
promises.low_calibration_420ma = node.config_gateway.config_set_low_calibration_420ma(mac, parseInt(config.low_calibration_420ma));
|
|
1226
|
+
}
|
|
1227
|
+
if(config.mid_calibration_420ma_active){
|
|
1228
|
+
promises.mid_calibration_420ma = node.config_gateway.config_set_mid_calibration_420ma(mac, parseInt(config.mid_calibration_420ma));
|
|
1229
|
+
}
|
|
1230
|
+
if(config.high_calibration_420ma_active){
|
|
1231
|
+
promises.high_calibration_420ma = node.config_gateway.config_set_high_calibration_420ma(mac, parseInt(config.high_calibration_420ma));
|
|
1232
|
+
}
|
|
1233
|
+
break;
|
|
1220
1234
|
case 107:
|
|
1221
1235
|
if(config.sensor_boot_time_420ma_active){
|
|
1222
1236
|
promises.sensor_boot_time_420ma = node.config_gateway.config_set_sensor_boot_time_420ma(mac, parseInt(config.sensor_boot_time_420ma));
|
|
@@ -1245,6 +1259,278 @@ module.exports = function(RED) {
|
|
|
1245
1259
|
promises.debounce_time_108 = node.config_gateway.config_set_debounce_time_108(mac, parseInt(config.debounce_time_108));
|
|
1246
1260
|
}
|
|
1247
1261
|
break;
|
|
1262
|
+
case 110:
|
|
1263
|
+
if(config.current_calibration_c1_80_active){
|
|
1264
|
+
promises.current_calibration_c1_80 = node.config_gateway.config_set_current_calibration_individual_80(mac, parseInt(config.current_calibration_c1_80), 1);
|
|
1265
|
+
}
|
|
1266
|
+
if(config.output_data_rate_101_active){
|
|
1267
|
+
promises.output_data_rate_101 = node.config_gateway.config_set_output_data_rate_101(mac, parseInt(config.output_data_rate_101));
|
|
1268
|
+
}
|
|
1269
|
+
if(config.sampling_duration_101_active){
|
|
1270
|
+
promises.sampling_duration_101 = node.config_gateway.config_set_sampling_duration_101(mac, parseInt(config.sampling_duration_101));
|
|
1271
|
+
}
|
|
1272
|
+
if(config.x_axis_101 || config.y_axis_101 || config.z_axis_101){
|
|
1273
|
+
promises.axis_enabled_101 = node.config_gateway.config_set_axis_enabled_101(mac, config.x_axis_101, config.y_axis_101, config.z_axis_101);
|
|
1274
|
+
}
|
|
1275
|
+
if(config.sampling_interval_101_active){
|
|
1276
|
+
promises.sampling_interval_101 = node.config_gateway.config_set_sampling_interval_101(mac, parseInt(config.sampling_interval_101));
|
|
1277
|
+
}
|
|
1278
|
+
if(config.full_scale_range_101_active){
|
|
1279
|
+
promises.full_scale_range_101 = node.config_gateway.config_set_full_scale_range_101(mac, parseInt(config.full_scale_range_101));
|
|
1280
|
+
}
|
|
1281
|
+
if(config.mode_110_active){
|
|
1282
|
+
promises.mode = node.config_gateway.config_set_operation_mode_80(mac, parseInt(config.mode_110));
|
|
1283
|
+
}
|
|
1284
|
+
if(config.filter_80_active){
|
|
1285
|
+
promises.filter = node.config_gateway.config_set_filters_80(mac, parseInt(config.filter_80));
|
|
1286
|
+
}
|
|
1287
|
+
if(config.low_pass_filter_80_active){
|
|
1288
|
+
promises.low_pass_filter = node.config_gateway.config_set_low_pass_filter_80(mac, parseInt(config.low_pass_filter_80));
|
|
1289
|
+
}
|
|
1290
|
+
if(config.high_pass_filter_80_active){
|
|
1291
|
+
promises.high_pass_filter = node.config_gateway.config_set_high_pass_filter_80(mac, parseInt(config.high_pass_filter_80));
|
|
1292
|
+
}
|
|
1293
|
+
if(config.measurement_mode_80_active){
|
|
1294
|
+
promises.measurement_mode = node.config_gateway.config_set_measurement_mode_80(mac, parseInt(config.measurement_mode_80));
|
|
1295
|
+
}
|
|
1296
|
+
if(config.on_request_timeout_80_active){
|
|
1297
|
+
promises.on_request_timeout = node.config_gateway.config_set_on_request_timeout_80(mac, parseInt(config.on_request_timeout_80));
|
|
1298
|
+
}
|
|
1299
|
+
if(config.deadband_80_active){
|
|
1300
|
+
promises.deadband = node.config_gateway.config_set_deadband_80(mac, parseInt(config.deadband_80));
|
|
1301
|
+
}
|
|
1302
|
+
if(config.payload_length_80_active){
|
|
1303
|
+
promises.payload_length_80 = node.config_gateway.config_set_payload_length_80(mac, parseInt(config.payload_length_80));
|
|
1304
|
+
}
|
|
1305
|
+
if(config.set_rtc_101){
|
|
1306
|
+
promises.set_rtc_101 = node.config_gateway.config_set_rtc_101(mac);
|
|
1307
|
+
}
|
|
1308
|
+
if(config.auto_raw_interval_110_active){
|
|
1309
|
+
promises.auto_raw_interval_110 = node.config_gateway.config_set_auto_raw_interval_110(mac, parseInt(config.auto_raw_interval_110));
|
|
1310
|
+
}
|
|
1311
|
+
if(config.auto_raw_destination_110_active){
|
|
1312
|
+
promises.auto_raw_destination_110 = node.config_gateway.config_set_auto_raw_destination_110(mac, parseInt(config.auto_raw_destination_110));
|
|
1313
|
+
}
|
|
1314
|
+
if(config.clear_probe_uptimers_110_active){
|
|
1315
|
+
promises.clear_probe_uptimers_110 = node.config_gateway.config_set_clear_probe_uptimers_110(mac, parseInt(config.clear_probe_uptimers_110));
|
|
1316
|
+
}
|
|
1317
|
+
if(config.smart_interval_110_active){
|
|
1318
|
+
promises.smart_interval_110 = node.config_gateway.config_set_smart_interval_110(mac, parseInt(config.smart_interval_110));
|
|
1319
|
+
}
|
|
1320
|
+
if(config.smart_threshold_110_active){
|
|
1321
|
+
promises.smart_threshold_110 = nocd.config_gateway.config_set_smart_threshold_110(mac, parseInt(config.smart_threshold_110));
|
|
1322
|
+
}
|
|
1323
|
+
break;
|
|
1324
|
+
case 111:
|
|
1325
|
+
if(config.current_calibration_c1_80_active){
|
|
1326
|
+
promises.current_calibration_c1_80_active = node.config_gateway.config_set_current_calibration_individual_80(mac, parseInt(config.current_calibration_c1_80), 1);
|
|
1327
|
+
}
|
|
1328
|
+
if(config.current_calibration_c2_80_active){
|
|
1329
|
+
promises.current_calibration_c2_80 = node.config_gateway.config_set_current_calibration_individual_80(mac, parseInt(config.current_calibration_c2_80), 3);
|
|
1330
|
+
}
|
|
1331
|
+
if(config.output_data_rate_p1_81_active){
|
|
1332
|
+
promises.output_data_rate_p1_81 = node.config_gateway.config_set_output_data_rate_101(mac, parseInt(config.output_data_rate_p1_81));
|
|
1333
|
+
}
|
|
1334
|
+
if(config.output_data_rate_p2_81_active){
|
|
1335
|
+
promises.output_data_rate_p2_81 = node.config_gateway.config_set_output_data_rate_p2_81(mac, parseInt(config.output_data_rate_p2_81));
|
|
1336
|
+
}
|
|
1337
|
+
if(config.sampling_duration_p1_81_active){
|
|
1338
|
+
promises.sampling_duration_p1_81 = node.config_gateway.config_set_sampling_duration_101(mac, parseInt(config.sampling_duration_p1_81));
|
|
1339
|
+
}
|
|
1340
|
+
if(config.sampling_duration_p2_81_active){
|
|
1341
|
+
promises.sampling_duration_p2_81 = node.config_gateway.config_set_sampling_duration_p2_81(mac, parseInt(config.sampling_duration_p2_81));
|
|
1342
|
+
}
|
|
1343
|
+
if(config.x_axis_101 || config.y_axis_101 || config.z_axis_101){
|
|
1344
|
+
promises.axis_enabled_101 = node.config_gateway.config_set_axis_enabled_101(mac, config.x_axis_101, config.y_axis_101, config.z_axis_101);
|
|
1345
|
+
}
|
|
1346
|
+
if(config.sampling_interval_101_active){
|
|
1347
|
+
promises.sampling_interval_101 = node.config_gateway.config_set_sampling_interval_101(mac, parseInt(config.sampling_interval_101));
|
|
1348
|
+
}
|
|
1349
|
+
if(config.full_scale_range_101_active){
|
|
1350
|
+
promises.full_scale_range_101 = node.config_gateway.config_set_full_scale_range_101(mac, parseInt(config.full_scale_range_101));
|
|
1351
|
+
}
|
|
1352
|
+
if(config.mode_110_active){
|
|
1353
|
+
promises.mode = node.config_gateway.config_set_operation_mode_80(mac, parseInt(config.mode_110));
|
|
1354
|
+
}
|
|
1355
|
+
if(config.filter_80_active){
|
|
1356
|
+
promises.filter = node.config_gateway.config_set_filters_80(mac, parseInt(config.filter_80));
|
|
1357
|
+
}
|
|
1358
|
+
if(config.low_pass_filter_80_active){
|
|
1359
|
+
promises.low_pass_filter = node.config_gateway.config_set_low_pass_filter_80(mac, parseInt(config.low_pass_filter_80));
|
|
1360
|
+
}
|
|
1361
|
+
if(config.high_pass_filter_80_active){
|
|
1362
|
+
promises.high_pass_filter = node.config_gateway.config_set_high_pass_filter_80(mac, parseInt(config.high_pass_filter_80));
|
|
1363
|
+
}
|
|
1364
|
+
if(config.low_pass_filter_81_p2_active){
|
|
1365
|
+
promises.low_pass_filter_p2 = node.config_gateway.config_set_low_pass_filter_81_p2(mac, parseInt(config.low_pass_filter_81_p2));
|
|
1366
|
+
}
|
|
1367
|
+
if(config.high_pass_filter_81_p2_active){
|
|
1368
|
+
promises.high_pass_filter_p2 = node.config_gateway.config_set_high_pass_filter_81_p2(mac, parseInt(config.high_pass_filter_81_p2));
|
|
1369
|
+
}
|
|
1370
|
+
if(config.measurement_mode_80_active){
|
|
1371
|
+
promises.measurement_mode = node.config_gateway.config_set_measurement_mode_80(mac, parseInt(config.measurement_mode_80));
|
|
1372
|
+
}
|
|
1373
|
+
if(config.on_request_timeout_80_active){
|
|
1374
|
+
promises.on_request_timeout = node.config_gateway.config_set_on_request_timeout_80(mac, parseInt(config.on_request_timeout_80));
|
|
1375
|
+
}
|
|
1376
|
+
if(config.deadband_80_active){
|
|
1377
|
+
promises.deadband = node.config_gateway.config_set_deadband_80(mac, parseInt(config.deadband_80));
|
|
1378
|
+
}
|
|
1379
|
+
if(config.payload_length_80_active){
|
|
1380
|
+
promises.payload_length_80 = node.config_gateway.config_set_payload_length_80(mac, parseInt(config.payload_length_80));
|
|
1381
|
+
}
|
|
1382
|
+
if(config.set_rtc_101){
|
|
1383
|
+
promises.set_rtc_101 = node.config_gateway.config_set_rtc_101(mac);
|
|
1384
|
+
}
|
|
1385
|
+
if(config.auto_raw_interval_110_active){
|
|
1386
|
+
promises.auto_raw_interval_110 = node.config_gateway.config_set_auto_raw_interval_110(mac, parseInt(config.auto_raw_interval_110));
|
|
1387
|
+
}
|
|
1388
|
+
if(config.auto_raw_destination_110_active){
|
|
1389
|
+
promises.auto_raw_destination_110 = node.config_gateway.config_set_auto_raw_destination_110(mac, parseInt(config.auto_raw_destination_110));
|
|
1390
|
+
}
|
|
1391
|
+
if(config.clear_probe_uptimers_110_active){
|
|
1392
|
+
promises.clear_probe_uptimers_110 = node.config_gateway.config_set_clear_probe_uptimers_110(mac, parseInt(config.clear_probe_uptimers_110));
|
|
1393
|
+
}
|
|
1394
|
+
if(config.smart_interval_110_active){
|
|
1395
|
+
promises.smart_interval_110 = node.config_gateway.config_set_smart_interval_110(mac, parseInt(config.smart_interval_110));
|
|
1396
|
+
}
|
|
1397
|
+
if(config.smart_threshold_110_active){
|
|
1398
|
+
promises.smart_threshold_110 = nocd.config_gateway.config_set_smart_threshold_110(mac, parseInt(config.smart_threshold_110));
|
|
1399
|
+
}
|
|
1400
|
+
break;
|
|
1401
|
+
case 112:
|
|
1402
|
+
if(config.current_calibration_82_active){
|
|
1403
|
+
promises.current_calibration_82 = node.config_gateway.config_set_current_calibration_82(mac, parseInt(config.current_calibration_82));
|
|
1404
|
+
}
|
|
1405
|
+
if(config.output_data_rate_101_active){
|
|
1406
|
+
promises.output_data_rate_101 = node.config_gateway.config_set_output_data_rate_101(mac, parseInt(config.output_data_rate_101));
|
|
1407
|
+
}
|
|
1408
|
+
if(config.sampling_duration_101_active){
|
|
1409
|
+
promises.sampling_duration_101 = node.config_gateway.config_set_sampling_duration_101(mac, parseInt(config.sampling_duration_101));
|
|
1410
|
+
}
|
|
1411
|
+
if(config.x_axis_101 || config.y_axis_101 || config.z_axis_101){
|
|
1412
|
+
promises.axis_enabled_101 = node.config_gateway.config_set_axis_enabled_101(mac, config.x_axis_101, config.y_axis_101, config.z_axis_101);
|
|
1413
|
+
}
|
|
1414
|
+
if(config.sampling_interval_101_active){
|
|
1415
|
+
promises.sampling_interval_101 = node.config_gateway.config_set_sampling_interval_101(mac, parseInt(config.sampling_interval_101));
|
|
1416
|
+
}
|
|
1417
|
+
if(config.full_scale_range_101_active){
|
|
1418
|
+
promises.full_scale_range_101 = node.config_gateway.config_set_full_scale_range_101(mac, parseInt(config.full_scale_range_101));
|
|
1419
|
+
}
|
|
1420
|
+
if(config.mode_110_active){
|
|
1421
|
+
promises.mode = node.config_gateway.config_set_operation_mode_80(mac, parseInt(config.mode_110));
|
|
1422
|
+
}
|
|
1423
|
+
if(config.filter_80_active){
|
|
1424
|
+
promises.filter = node.config_gateway.config_set_filters_80(mac, parseInt(config.filter_80));
|
|
1425
|
+
}
|
|
1426
|
+
if(config.low_pass_filter_80_active){
|
|
1427
|
+
promises.low_pass_filter = node.config_gateway.config_set_low_pass_filter_80(mac, parseInt(config.low_pass_filter_80));
|
|
1428
|
+
}
|
|
1429
|
+
if(config.high_pass_filter_80_active){
|
|
1430
|
+
promises.high_pass_filter = node.config_gateway.config_set_high_pass_filter_80(mac, parseInt(config.high_pass_filter_80));
|
|
1431
|
+
}
|
|
1432
|
+
if(config.measurement_mode_80_active){
|
|
1433
|
+
promises.measurement_mode = node.config_gateway.config_set_measurement_mode_80(mac, parseInt(config.measurement_mode_80));
|
|
1434
|
+
}
|
|
1435
|
+
if(config.on_request_timeout_80_active){
|
|
1436
|
+
promises.on_request_timeout = node.config_gateway.config_set_on_request_timeout_80(mac, parseInt(config.on_request_timeout_80));
|
|
1437
|
+
}
|
|
1438
|
+
if(config.deadband_80_active){
|
|
1439
|
+
promises.deadband = node.config_gateway.config_set_deadband_80(mac, parseInt(config.deadband_80));
|
|
1440
|
+
}
|
|
1441
|
+
if(config.payload_length_80_active){
|
|
1442
|
+
promises.payload_length_80 = node.config_gateway.config_set_payload_length_80(mac, parseInt(config.payload_length_80));
|
|
1443
|
+
}
|
|
1444
|
+
if(config.set_rtc_101){
|
|
1445
|
+
promises.set_rtc_101 = node.config_gateway.config_set_rtc_101(mac);
|
|
1446
|
+
}
|
|
1447
|
+
if(config.auto_raw_interval_110_active){
|
|
1448
|
+
promises.auto_raw_interval_110 = node.config_gateway.config_set_auto_raw_interval_110(mac, parseInt(config.auto_raw_interval_110));
|
|
1449
|
+
}
|
|
1450
|
+
if(config.auto_raw_destination_110_active){
|
|
1451
|
+
promises.auto_raw_destination_110 = node.config_gateway.config_set_auto_raw_destination_110(mac, parseInt(config.auto_raw_destination_110));
|
|
1452
|
+
}
|
|
1453
|
+
if(config.clear_probe_uptimers_110_active){
|
|
1454
|
+
promises.clear_probe_uptimers_110 = node.config_gateway.config_set_clear_probe_uptimers_110(mac, parseInt(config.clear_probe_uptimers_110));
|
|
1455
|
+
}
|
|
1456
|
+
if(config.smart_interval_110_active){
|
|
1457
|
+
promises.smart_interval_110 = node.config_gateway.config_set_smart_interval_110(mac, parseInt(config.smart_interval_110));
|
|
1458
|
+
}
|
|
1459
|
+
if(config.smart_threshold_110_active){
|
|
1460
|
+
promises.smart_threshold_110 = nocd.config_gateway.config_set_smart_threshold_110(mac, parseInt(config.smart_threshold_110));
|
|
1461
|
+
}
|
|
1462
|
+
break;
|
|
1463
|
+
case 114:
|
|
1464
|
+
if(config.output_data_rate_101_active){
|
|
1465
|
+
promises.output_data_rate_101 = node.config_gateway.config_set_output_data_rate_101(mac, parseInt(config.output_data_rate_101));
|
|
1466
|
+
}
|
|
1467
|
+
if(config.sampling_duration_101_active){
|
|
1468
|
+
promises.sampling_duration_101 = node.config_gateway.config_set_sampling_duration_101(mac, parseInt(config.sampling_duration_101));
|
|
1469
|
+
}
|
|
1470
|
+
if(config.x_axis_101 || config.y_axis_101 || config.z_axis_101){
|
|
1471
|
+
promises.axis_enabled_101 = node.config_gateway.config_set_axis_enabled_101(mac, config.x_axis_101, config.y_axis_101, config.z_axis_101);
|
|
1472
|
+
}
|
|
1473
|
+
if(config.sampling_interval_101_active){
|
|
1474
|
+
promises.sampling_interval_101 = node.config_gateway.config_set_sampling_interval_101(mac, parseInt(config.sampling_interval_101));
|
|
1475
|
+
}
|
|
1476
|
+
if(config.full_scale_range_101_active){
|
|
1477
|
+
promises.full_scale_range_101 = node.config_gateway.config_set_full_scale_range_101(mac, parseInt(config.full_scale_range_101));
|
|
1478
|
+
}
|
|
1479
|
+
if(config.mode_110_active){
|
|
1480
|
+
promises.mode = node.config_gateway.config_set_operation_mode_80(mac, parseInt(config.mode_110));
|
|
1481
|
+
}
|
|
1482
|
+
if(config.filter_80_active){
|
|
1483
|
+
promises.filter = node.config_gateway.config_set_filters_80(mac, parseInt(config.filter_80));
|
|
1484
|
+
}
|
|
1485
|
+
if(config.low_pass_filter_80_active){
|
|
1486
|
+
promises.low_pass_filter = node.config_gateway.config_set_low_pass_filter_80(mac, parseInt(config.low_pass_filter_80));
|
|
1487
|
+
}
|
|
1488
|
+
if(config.high_pass_filter_80_active){
|
|
1489
|
+
promises.high_pass_filter = node.config_gateway.config_set_high_pass_filter_80(mac, parseInt(config.high_pass_filter_80));
|
|
1490
|
+
}
|
|
1491
|
+
if(config.measurement_mode_80_active){
|
|
1492
|
+
promises.measurement_mode = node.config_gateway.config_set_measurement_mode_80(mac, parseInt(config.measurement_mode_80));
|
|
1493
|
+
}
|
|
1494
|
+
if(config.on_request_timeout_80_active){
|
|
1495
|
+
promises.on_request_timeout = node.config_gateway.config_set_on_request_timeout_80(mac, parseInt(config.on_request_timeout_80));
|
|
1496
|
+
}
|
|
1497
|
+
if(config.deadband_80_active){
|
|
1498
|
+
promises.deadband = node.config_gateway.config_set_deadband_80(mac, parseInt(config.deadband_80));
|
|
1499
|
+
}
|
|
1500
|
+
if(config.led_alert_mode_84_active){
|
|
1501
|
+
promises.led_alert_mode_84 = node.config_gateway.config_set_led_alert_mode_84(mac, parseInt(config.led_alert_mode_84));
|
|
1502
|
+
}
|
|
1503
|
+
if(config.led_accelerometer_threshold_84_active){
|
|
1504
|
+
promises.led_accelerometer_threshold_84 = node.config_gateway.config_set_led_accelerometer_threshold_84(mac, parseInt(config.led_accelerometer_threshold_84));
|
|
1505
|
+
}
|
|
1506
|
+
if(config.led_velocity_threshold_84_active){
|
|
1507
|
+
promises.led_velocity_threshold_84 = node.config_gateway.config_set_led_velocity_threshold_84(mac, parseInt(config.led_velocity_threshold_84));
|
|
1508
|
+
}
|
|
1509
|
+
if(config.acceleration_interrupt_threshold_84_active){
|
|
1510
|
+
promises.acceleration_interrupt_threshold_84 = node.config_gateway.config_set_acceleration_interrupt_threshold_84(mac, parseInt(config.acceleration_interrupt_threshold_84));
|
|
1511
|
+
}
|
|
1512
|
+
if(config.payload_length_80_active){
|
|
1513
|
+
promises.payload_length_80 = node.config_gateway.config_set_payload_length_80(mac, parseInt(config.payload_length_80));
|
|
1514
|
+
}
|
|
1515
|
+
if(config.set_rtc_101){
|
|
1516
|
+
promises.set_rtc_101 = node.config_gateway.config_set_rtc_101(mac);
|
|
1517
|
+
}
|
|
1518
|
+
if(config.auto_raw_interval_110_active){
|
|
1519
|
+
promises.auto_raw_interval_110 = node.config_gateway.config_set_auto_raw_interval_110(mac, parseInt(config.auto_raw_interval_110));
|
|
1520
|
+
}
|
|
1521
|
+
if(config.auto_raw_destination_110_active){
|
|
1522
|
+
promises.auto_raw_destination_110 = node.config_gateway.config_set_auto_raw_destination_110(mac, parseInt(config.auto_raw_destination_110));
|
|
1523
|
+
}
|
|
1524
|
+
if(config.clear_probe_uptimers_110_active){
|
|
1525
|
+
promises.clear_probe_uptimers_110 = node.config_gateway.config_set_clear_probe_uptimers_110(mac, parseInt(config.clear_probe_uptimers_110));
|
|
1526
|
+
}
|
|
1527
|
+
if(config.smart_interval_110_active){
|
|
1528
|
+
promises.smart_interval_110 = node.config_gateway.config_set_smart_interval_110(mac, parseInt(config.smart_interval_110));
|
|
1529
|
+
}
|
|
1530
|
+
if(config.smart_threshold_110_active){
|
|
1531
|
+
promises.smart_threshold_110 = nocd.config_gateway.config_set_smart_threshold_110(mac, parseInt(config.smart_threshold_110));
|
|
1532
|
+
}
|
|
1533
|
+
break;
|
|
1248
1534
|
case 180:
|
|
1249
1535
|
if(config.current_calibration_c1_80_active){
|
|
1250
1536
|
promises.current_calibration_c1_80 = node.config_gateway.config_set_current_calibration_individual_80(mac, parseInt(config.current_calibration_c1_80), 1);
|
|
@@ -1524,6 +1810,20 @@ module.exports = function(RED) {
|
|
|
1524
1810
|
promises.number_of_regs_to_rd_539 = node.config_gateway.config_set_number_of_regs_to_rd_539(mac, parseInt(config.number_of_regs_to_rd_539));
|
|
1525
1811
|
}
|
|
1526
1812
|
break;
|
|
1813
|
+
case 540:
|
|
1814
|
+
if(config.sensor_boot_time_420ma_active){
|
|
1815
|
+
promises.sensor_boot_time_420ma = node.config_gateway.config_set_sensor_boot_time_420ma(mac, parseInt(config.sensor_boot_time_420ma));
|
|
1816
|
+
}
|
|
1817
|
+
if(config.low_calibration_420ma_active){
|
|
1818
|
+
promises.low_calibration_420ma = node.config_gateway.config_set_low_calibration_420ma(mac, parseInt(config.low_calibration_420ma));
|
|
1819
|
+
}
|
|
1820
|
+
if(config.mid_calibration_420ma_active){
|
|
1821
|
+
promises.mid_calibration_420ma = node.config_gateway.config_set_mid_calibration_420ma(mac, parseInt(config.mid_calibration_420ma));
|
|
1822
|
+
}
|
|
1823
|
+
if(config.high_calibration_420ma_active){
|
|
1824
|
+
promises.high_calibration_420ma = node.config_gateway.config_set_high_calibration_420ma(mac, parseInt(config.high_calibration_420ma));
|
|
1825
|
+
}
|
|
1826
|
+
break;
|
|
1527
1827
|
}
|
|
1528
1828
|
}
|
|
1529
1829
|
// These sensors listed in original_otf_devices use a different OTF code.
|