@ncd-io/node-red-enterprise-sensors 2.0.1 → 2.0.3
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 +141 -1699
- package/lib/sensors/107.js +452 -0
- package/lib/sensors/111.js +19 -2
- package/lib/sensors/12.js +405 -0
- package/lib/sensors/122.js +461 -0
- package/lib/sensors/125.js +1 -1
- package/lib/sensors/126.js +1 -1
- package/lib/sensors/128.js +1 -1
- package/lib/sensors/15.js +439 -0
- package/lib/sensors/23.js +404 -0
- package/lib/sensors/39.js +324 -0
- package/lib/sensors/4.js +403 -0
- package/lib/sensors/45.js +438 -0
- package/lib/sensors/48.js +438 -0
- package/lib/sensors/52.js +508 -0
- package/lib/sensors/539.js +931 -0
- package/lib/sensors/54.js +380 -0
- package/lib/sensors/540.js +439 -0
- package/lib/sensors/541.js +476 -0
- package/lib/sensors/545.js +478 -0
- package/lib/sensors/55.js +419 -0
- package/lib/sensors/554.js +1 -1
- package/lib/sensors/56.js +442 -0
- package/lib/sensors/75.js +469 -0
- package/lib/sensors/88.js +456 -0
- package/lib/sensors/89.js +459 -0
- package/lib/sensors/90.js +404 -0
- package/lib/sensors/95.js +438 -0
- package/lib/sensors/96.js +438 -0
- package/package.json +1 -1
- package/wireless.html +97 -12
- package/wireless.js +59 -13
package/wireless.js
CHANGED
|
@@ -1683,6 +1683,12 @@ module.exports = function(RED) {
|
|
|
1683
1683
|
if(config.measurement_type_thermocouple_active){
|
|
1684
1684
|
promises.measurement_type_thermocouple_4 = node.config_gateway.config_set_measurement_type_thermocouple(mac, parseInt(config.measurement_type_thermocouple));
|
|
1685
1685
|
}
|
|
1686
|
+
if(config.boot_time_4_active){
|
|
1687
|
+
promises.boot_time_4 = node.config_gateway.config_set_boot_time_4(mac, parseInt(config.boot_time_4));
|
|
1688
|
+
}
|
|
1689
|
+
if(config.operation_mode_4_active){
|
|
1690
|
+
promises.operation_mode_4 = node.config_gateway.config_set_operation_mode_4(mac, parseInt(config.operation_mode_4));
|
|
1691
|
+
}
|
|
1686
1692
|
break;
|
|
1687
1693
|
case 5:
|
|
1688
1694
|
promises.acceleration_range = node.config_gateway.config_set_amgt_accel(mac, parseInt(config.amgt_accel));
|
|
@@ -1737,6 +1743,12 @@ module.exports = function(RED) {
|
|
|
1737
1743
|
if(config.measurement_type_thermocouple_active){
|
|
1738
1744
|
promises.measurement_type_thermocouple_12 = node.config_gateway.config_set_measurement_type_thermocouple(mac, parseInt(config.measurement_type_thermocouple));
|
|
1739
1745
|
}
|
|
1746
|
+
if(config.boot_time_4_active){
|
|
1747
|
+
promises.boot_time_4 = node.config_gateway.config_set_boot_time_4(mac, parseInt(config.boot_time_4));
|
|
1748
|
+
}
|
|
1749
|
+
if(config.operation_mode_4_active){
|
|
1750
|
+
promises.operation_mode_4 = node.config_gateway.config_set_operation_mode_4(mac, parseInt(config.operation_mode_4));
|
|
1751
|
+
}
|
|
1740
1752
|
break;
|
|
1741
1753
|
case 13:
|
|
1742
1754
|
if(config.current_calibration_13_active){
|
|
@@ -1869,6 +1881,12 @@ module.exports = function(RED) {
|
|
|
1869
1881
|
if(config.measurement_type_thermocouple_active){
|
|
1870
1882
|
promises.measurement_type_thermocouple_23 = node.config_gateway.config_set_measurement_type_thermocouple(mac, parseInt(config.measurement_type_thermocouple));
|
|
1871
1883
|
}
|
|
1884
|
+
if(config.boot_time_4_active){
|
|
1885
|
+
promises.boot_time_4 = node.config_gateway.config_set_boot_time_4(mac, parseInt(config.boot_time_4));
|
|
1886
|
+
}
|
|
1887
|
+
if(config.operation_mode_4_active){
|
|
1888
|
+
promises.operation_mode_4 = node.config_gateway.config_set_operation_mode_4(mac, parseInt(config.operation_mode_4));
|
|
1889
|
+
}
|
|
1872
1890
|
break;
|
|
1873
1891
|
case 24:
|
|
1874
1892
|
if(config.impact_accel_active){
|
|
@@ -2310,6 +2328,24 @@ module.exports = function(RED) {
|
|
|
2310
2328
|
if(config.auto_check_threshold_88_active){
|
|
2311
2329
|
promises.auto_check_threshold_88 = node.config_gateway.config_set_auto_check_threshold_88(mac, parseInt(config.auto_check_threshold_88));
|
|
2312
2330
|
}
|
|
2331
|
+
if(config.sensor_boot_time_420ma_active){
|
|
2332
|
+
promises.sensor_boot_time_420ma = node.config_gateway.config_set_sensor_boot_time_420ma(mac, parseInt(config.sensor_boot_time_420ma));
|
|
2333
|
+
}
|
|
2334
|
+
if(config.low_calibration_420ma_active){
|
|
2335
|
+
promises.low_calibration_420ma = node.config_gateway.config_set_low_calibration_420ma(mac, parseInt(config.low_calibration_420ma));
|
|
2336
|
+
}
|
|
2337
|
+
if(config.mid_calibration_420ma_active){
|
|
2338
|
+
promises.mid_calibration_420ma = node.config_gateway.config_set_mid_calibration_420ma(mac, parseInt(config.mid_calibration_420ma));
|
|
2339
|
+
}
|
|
2340
|
+
if(config.high_calibration_420ma_active){
|
|
2341
|
+
promises.high_calibration_420ma = node.config_gateway.config_set_high_calibration_420ma(mac, parseInt(config.high_calibration_420ma));
|
|
2342
|
+
}
|
|
2343
|
+
if(config.fsr_420ma_active){
|
|
2344
|
+
promises.fsr_420ma = node.config_gateway.config_set_fsr_420ma(mac, parseInt(config.fsr_420ma));
|
|
2345
|
+
}
|
|
2346
|
+
if(config.always_on_420ma_active){
|
|
2347
|
+
promises.always_on_420ma = node.config_gateway.config_set_always_on_420ma(mac, parseInt(config.always_on_420ma));
|
|
2348
|
+
}
|
|
2313
2349
|
break;
|
|
2314
2350
|
case 76:
|
|
2315
2351
|
if(config.periodic_check_rate_76_active){
|
|
@@ -2649,12 +2685,12 @@ module.exports = function(RED) {
|
|
|
2649
2685
|
if(config.low_calibration_420ma_active){
|
|
2650
2686
|
promises.low_calibration_420ma = node.config_gateway.config_set_low_calibration_420ma(mac, parseInt(config.low_calibration_420ma));
|
|
2651
2687
|
}
|
|
2652
|
-
if(config.mid_calibration_420ma_active){
|
|
2653
|
-
|
|
2654
|
-
}
|
|
2655
|
-
if(config.high_calibration_420ma_active){
|
|
2656
|
-
|
|
2657
|
-
}
|
|
2688
|
+
// if(config.mid_calibration_420ma_active){
|
|
2689
|
+
// promises.mid_calibration_420ma = node.config_gateway.config_set_mid_calibration_420ma(mac, parseInt(config.mid_calibration_420ma));
|
|
2690
|
+
// }
|
|
2691
|
+
// if(config.high_calibration_420ma_active){
|
|
2692
|
+
// promises.high_calibration_420ma = node.config_gateway.config_set_high_calibration_420ma(mac, parseInt(config.high_calibration_420ma));
|
|
2693
|
+
// }
|
|
2658
2694
|
if(config.auto_check_interval_88_active){
|
|
2659
2695
|
promises.auto_check_interval_88 = node.config_gateway.config_set_auto_check_interval_88(mac, parseInt(config.auto_check_interval_88));
|
|
2660
2696
|
}
|
|
@@ -4319,6 +4355,13 @@ module.exports = function(RED) {
|
|
|
4319
4355
|
if(config.flow_unit_545_active){
|
|
4320
4356
|
promises.flow_unit_545 = node.config_gateway.config_set_flow_unit_545(mac, parseInt(config.flow_unit_545));
|
|
4321
4357
|
}
|
|
4358
|
+
if(config.reset_total_545_active){
|
|
4359
|
+
promises.reset_total_545 = node.config_gateway.config_set_reset_total_545(mac);
|
|
4360
|
+
}
|
|
4361
|
+
if(config.cal_validation_545_active){
|
|
4362
|
+
promises.cal_validation_545 = node.config_gateway.config_set_cal_validation_545(mac);
|
|
4363
|
+
}
|
|
4364
|
+
|
|
4322
4365
|
if(config.gas_type_545_active){
|
|
4323
4366
|
promises.gas_type_545 = node.config_gateway.config_set_gas_type_545(mac, parseInt(config.gas_type_545));
|
|
4324
4367
|
}
|
|
@@ -4334,22 +4377,25 @@ module.exports = function(RED) {
|
|
|
4334
4377
|
break;
|
|
4335
4378
|
case 1010:
|
|
4336
4379
|
if(config.stay_on_mode_539_active){
|
|
4337
|
-
promises.
|
|
4380
|
+
promises.stay_on_mode_1010 = node.config_gateway.config_set_stay_on_mode_539(mac, parseInt(config.stay_on_mode_539));
|
|
4338
4381
|
}
|
|
4339
4382
|
if(config.baudrate_539_active){
|
|
4340
|
-
promises.
|
|
4383
|
+
promises.baudrate_1010 = node.config_gateway.config_set_baudrate_539(mac, parseInt(config.baudrate_539));
|
|
4341
4384
|
}
|
|
4342
|
-
if(config.
|
|
4343
|
-
promises.
|
|
4385
|
+
if(config.rx485_timeout_1011_active){
|
|
4386
|
+
promises.rx485_timeout_1010 = node.config_gateway.config_set_rx485_timeout_1011(mac, parseInt(config.rx485_timeout_1011));
|
|
4387
|
+
}
|
|
4388
|
+
if(config.auto_address_timeout_1011_active){
|
|
4389
|
+
promises.auto_address_timeout_1010 = node.config_gateway.config_set_auto_address_timeout_1011(mac, parseInt(config.auto_address_timeout_1011));
|
|
4344
4390
|
}
|
|
4345
4391
|
if(config.stop_bit_1011_active){
|
|
4346
|
-
promises.
|
|
4392
|
+
promises.stop_bit_1010 = node.config_gateway.config_set_stop_bit_1011(mac, parseInt(config.stop_bit_1011));
|
|
4347
4393
|
}
|
|
4348
4394
|
if(config.set_parity_1011_active){
|
|
4349
|
-
promises.
|
|
4395
|
+
promises.set_parity_1010 = node.config_gateway.config_set_parity_1011(mac, parseInt(config.set_parity_1011));
|
|
4350
4396
|
}
|
|
4351
4397
|
if(config.reboot_1011){
|
|
4352
|
-
promises.
|
|
4398
|
+
promises.reboot_1010 = node.config_gateway.config_set_reboot_1011(mac);
|
|
4353
4399
|
}
|
|
4354
4400
|
break;
|
|
4355
4401
|
case 1011:
|