@ncd-io/node-red-enterprise-sensors 1.1.3 → 1.1.5
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 +271 -91
- package/package.json +1 -1
- package/wireless.html +711 -278
- package/wireless.js +88 -50
package/wireless.js
CHANGED
|
@@ -1022,6 +1022,11 @@ module.exports = function(RED) {
|
|
|
1022
1022
|
promises.change_detection_ch2 = node.config_gateway.config_set_change_detection_ch2(mac, config.change_enabled_ch2 ? 1 : 0, parseInt(config.change_pr_ch2), parseInt(config.change_interval_ch2));
|
|
1023
1023
|
}
|
|
1024
1024
|
break;
|
|
1025
|
+
case 21:
|
|
1026
|
+
if(config.pressure_sensor_type_21_active){
|
|
1027
|
+
promises.pressure_sensor_type_21 = node.config_gateway.config_set_pressure_sensor_type_21(mac, parseInt(config.pressure_sensor_type_21));
|
|
1028
|
+
}
|
|
1029
|
+
break;
|
|
1025
1030
|
case 23:
|
|
1026
1031
|
if(config.thermocouple_type_23_active){
|
|
1027
1032
|
promises.thermocouple_type_23 = node.config_gateway.config_set_thermocouple_type_23(mac, parseInt(config.thermocouple_type_23));
|
|
@@ -1881,11 +1886,11 @@ module.exports = function(RED) {
|
|
|
1881
1886
|
}
|
|
1882
1887
|
break;
|
|
1883
1888
|
case 110:
|
|
1884
|
-
if(config.
|
|
1885
|
-
promises.
|
|
1889
|
+
if(config.odr_p1_110_active){
|
|
1890
|
+
promises.odr_p1_110 = node.config_gateway.config_set_odr_p1_110(mac, parseInt(config.odr_p1_110));
|
|
1886
1891
|
}
|
|
1887
|
-
if(config.
|
|
1888
|
-
promises.
|
|
1892
|
+
if(config.sampling_duration_p1_110_active){
|
|
1893
|
+
promises.sampling_duration_p1_110 = node.config_gateway.config_set_sampling_duration_p1_110(mac, parseInt(config.sampling_duration_p1_110));
|
|
1889
1894
|
}
|
|
1890
1895
|
if(config.x_axis_101 || config.y_axis_101 || config.z_axis_101){
|
|
1891
1896
|
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);
|
|
@@ -1902,11 +1907,11 @@ module.exports = function(RED) {
|
|
|
1902
1907
|
if(config.filter_80_active){
|
|
1903
1908
|
promises.filter = node.config_gateway.config_set_filters_80(mac, parseInt(config.filter_80));
|
|
1904
1909
|
}
|
|
1905
|
-
if(config.
|
|
1906
|
-
promises.
|
|
1910
|
+
if(config.low_pass_filter_p1_110_active){
|
|
1911
|
+
promises.low_pass_filter_p1_110 = node.config_gateway.config_set_low_pass_filter_p1_110(mac, parseInt(config.low_pass_filter_p1_110));
|
|
1907
1912
|
}
|
|
1908
|
-
if(config.
|
|
1909
|
-
promises.
|
|
1913
|
+
if(config.high_pass_filter_p1_110_active){
|
|
1914
|
+
promises.high_pass_filter_p1_110 = node.config_gateway.config_set_high_pass_filter_p1_110(mac, parseInt(config.high_pass_filter_p1_110));
|
|
1910
1915
|
}
|
|
1911
1916
|
if(config.measurement_mode_80_active){
|
|
1912
1917
|
promises.measurement_mode = node.config_gateway.config_set_measurement_mode_80(mac, parseInt(config.measurement_mode_80));
|
|
@@ -1941,22 +1946,25 @@ module.exports = function(RED) {
|
|
|
1941
1946
|
if(config.fly_interval_110_active){
|
|
1942
1947
|
promises.fly_interval_110 = node.config_gateway.config_set_fly_interval_110(mac, parseInt(config.fly_interval_110));
|
|
1943
1948
|
}
|
|
1944
|
-
if(config.
|
|
1945
|
-
promises.
|
|
1949
|
+
if(config.motion_detect_threshold_p1_110_active){
|
|
1950
|
+
promises.motion_detect_threshold_p1_110 = node.config_gateway.config_set_motion_detect_threshold_p1_110(mac, parseInt(config.motion_detect_threshold_p1_110));
|
|
1951
|
+
}
|
|
1952
|
+
if(config.enable_rpm_calculate_status_110_active){
|
|
1953
|
+
promises.enable_rpm_calculate_status_110 = node.config_gateway.config_set_enable_rpm_calculate_status_110(mac, parseInt(config.enable_rpm_calculate_status_110));
|
|
1946
1954
|
}
|
|
1947
1955
|
break;
|
|
1948
1956
|
case 111:
|
|
1949
|
-
if(config.
|
|
1950
|
-
promises.
|
|
1957
|
+
if(config.odr_p1_110_active){
|
|
1958
|
+
promises.odr_p1_111 = node.config_gateway.config_set_odr_p1_110(mac, parseInt(config.odr_p1_110));
|
|
1951
1959
|
}
|
|
1952
|
-
if(config.
|
|
1953
|
-
promises.
|
|
1960
|
+
if(config.sampling_duration_p1_110_active){
|
|
1961
|
+
promises.sampling_duration_p1_111 = node.config_gateway.config_set_sampling_duration_p1_110(mac, parseInt(config.sampling_duration_p1_110));
|
|
1954
1962
|
}
|
|
1955
|
-
if(config.
|
|
1956
|
-
promises.
|
|
1963
|
+
if(config.odr_p2_110_active){
|
|
1964
|
+
promises.odr_p2_111 = node.config_gateway.config_set_odr_p2_110(mac, parseInt(config.odr_p2_110));
|
|
1957
1965
|
}
|
|
1958
|
-
if(config.
|
|
1959
|
-
promises.
|
|
1966
|
+
if(config.sampling_duration_p2_110_active){
|
|
1967
|
+
promises.sampling_duration_p2_111 = node.config_gateway.config_set_sampling_duration_p2_110(mac, parseInt(config.sampling_duration_p2_110));
|
|
1960
1968
|
}
|
|
1961
1969
|
if(config.x_axis_101 || config.y_axis_101 || config.z_axis_101){
|
|
1962
1970
|
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);
|
|
@@ -1973,17 +1981,17 @@ module.exports = function(RED) {
|
|
|
1973
1981
|
if(config.filter_80_active){
|
|
1974
1982
|
promises.filter = node.config_gateway.config_set_filters_80(mac, parseInt(config.filter_80));
|
|
1975
1983
|
}
|
|
1976
|
-
if(config.
|
|
1977
|
-
promises.
|
|
1984
|
+
if(config.low_pass_filter_p1_110_active){
|
|
1985
|
+
promises.low_pass_filter_p1_111 = node.config_gateway.config_set_low_pass_filter_p1_110(mac, parseInt(config.low_pass_filter_p1_110));
|
|
1978
1986
|
}
|
|
1979
|
-
if(config.
|
|
1980
|
-
promises.
|
|
1987
|
+
if(config.high_pass_filter_p1_110_active){
|
|
1988
|
+
promises.high_pass_filter_p1_111 = node.config_gateway.config_set_high_pass_filter_p1_110(mac, parseInt(config.high_pass_filter_p1_110));
|
|
1981
1989
|
}
|
|
1982
|
-
if(config.
|
|
1983
|
-
promises.
|
|
1990
|
+
if(config.low_pass_filter_p2_110_active){
|
|
1991
|
+
promises.low_pass_filter_p2_111 = node.config_gateway.config_set_low_pass_filter_p2_110(mac, parseInt(config.low_pass_filter_p2_110));
|
|
1984
1992
|
}
|
|
1985
|
-
if(config.
|
|
1986
|
-
promises.
|
|
1993
|
+
if(config.high_pass_filter_p2_110_active){
|
|
1994
|
+
promises.high_pass_filter_p2_111 = node.config_gateway.config_set_high_pass_filter_p2_110(mac, parseInt(config.high_pass_filter_p2_110));
|
|
1987
1995
|
}
|
|
1988
1996
|
if(config.measurement_mode_80_active){
|
|
1989
1997
|
promises.measurement_mode = node.config_gateway.config_set_measurement_mode_80(mac, parseInt(config.measurement_mode_80));
|
|
@@ -2021,22 +2029,25 @@ module.exports = function(RED) {
|
|
|
2021
2029
|
if(config.fly_interval_110_active){
|
|
2022
2030
|
promises.fly_interval_110 = node.config_gateway.config_set_fly_interval_110(mac, parseInt(config.fly_interval_110));
|
|
2023
2031
|
}
|
|
2024
|
-
if(config.
|
|
2025
|
-
promises.
|
|
2032
|
+
if(config.motion_detect_threshold_p1_110_active){
|
|
2033
|
+
promises.motion_detect_threshold_p1_111 = node.config_gateway.config_set_motion_detect_threshold_p1_110(mac, parseInt(config.motion_detect_threshold_p1_110));
|
|
2026
2034
|
}
|
|
2027
|
-
if(config.
|
|
2028
|
-
promises.
|
|
2035
|
+
if(config.motion_detect_threshold_p2_110_active){
|
|
2036
|
+
promises.motion_detect_threshold_p2_111 = node.config_gateway.config_set_motion_detect_threshold_p2_110(mac, parseInt(config.motion_detect_threshold_p2_110));
|
|
2037
|
+
}
|
|
2038
|
+
if(config.enable_rpm_calculate_status_110_active){
|
|
2039
|
+
promises.enable_rpm_calculate_status_111 = node.config_gateway.config_set_enable_rpm_calculate_status_110(mac, parseInt(config.enable_rpm_calculate_status_110));
|
|
2029
2040
|
}
|
|
2030
2041
|
break;
|
|
2031
2042
|
case 112:
|
|
2032
2043
|
if(config.current_calibration_82_active){
|
|
2033
2044
|
promises.current_calibration_82 = node.config_gateway.config_set_current_calibration_82(mac, parseInt(config.current_calibration_82));
|
|
2034
2045
|
}
|
|
2035
|
-
if(config.
|
|
2036
|
-
promises.
|
|
2046
|
+
if(config.odr_p1_110_active){
|
|
2047
|
+
promises.odr_p1_112 = node.config_gateway.config_set_odr_p1_110(mac, parseInt(config.odr_p1_110));
|
|
2037
2048
|
}
|
|
2038
|
-
if(config.
|
|
2039
|
-
promises.
|
|
2049
|
+
if(config.sampling_duration_p1_110_active){
|
|
2050
|
+
promises.sampling_duration_p1_112 = node.config_gateway.config_set_sampling_duration_p1_110(mac, parseInt(config.sampling_duration_p1_110));
|
|
2040
2051
|
}
|
|
2041
2052
|
if(config.x_axis_101 || config.y_axis_101 || config.z_axis_101){
|
|
2042
2053
|
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);
|
|
@@ -2053,11 +2064,11 @@ module.exports = function(RED) {
|
|
|
2053
2064
|
if(config.filter_80_active){
|
|
2054
2065
|
promises.filter = node.config_gateway.config_set_filters_80(mac, parseInt(config.filter_80));
|
|
2055
2066
|
}
|
|
2056
|
-
if(config.
|
|
2057
|
-
promises.
|
|
2067
|
+
if(config.low_pass_filter_p1_110_active){
|
|
2068
|
+
promises.low_pass_filter_p1_112 = node.config_gateway.config_set_low_pass_filter_p1_110(mac, parseInt(config.low_pass_filter_p1_110));
|
|
2058
2069
|
}
|
|
2059
|
-
if(config.
|
|
2060
|
-
promises.
|
|
2070
|
+
if(config.high_pass_filter_p1_110_active){
|
|
2071
|
+
promises.high_pass_filter_p1_112 = node.config_gateway.config_set_high_pass_filter_p1_110(mac, parseInt(config.high_pass_filter_p1_110));
|
|
2061
2072
|
}
|
|
2062
2073
|
if(config.measurement_mode_80_active){
|
|
2063
2074
|
promises.measurement_mode = node.config_gateway.config_set_measurement_mode_80(mac, parseInt(config.measurement_mode_80));
|
|
@@ -2092,16 +2103,40 @@ module.exports = function(RED) {
|
|
|
2092
2103
|
if(config.fly_interval_110_active){
|
|
2093
2104
|
promises.fly_interval_110 = node.config_gateway.config_set_fly_interval_110(mac, parseInt(config.fly_interval_110));
|
|
2094
2105
|
}
|
|
2095
|
-
if(config.
|
|
2096
|
-
promises.
|
|
2106
|
+
if(config.motion_detect_threshold_p1_110_active){
|
|
2107
|
+
promises.motion_detect_threshold_p1_112 = node.config_gateway.config_set_motion_detect_threshold_p1_110(mac, parseInt(config.motion_detect_threshold_p1_110));
|
|
2108
|
+
}
|
|
2109
|
+
if(config.thermocouple_type_112_active){
|
|
2110
|
+
promises.thermocouple_type_112 = node.config_gateway.config_set_thermocouple_type_112(mac, parseInt(config.thermocouple_type_112));
|
|
2111
|
+
}
|
|
2112
|
+
if(config.filter_thermocouple_112_active){
|
|
2113
|
+
promises.filter_thermocouple_112 = node.config_gateway.config_set_filter_thermocouple_112(mac, parseInt(config.filter_thermocouple_112));
|
|
2114
|
+
}
|
|
2115
|
+
if(config.cold_junction_thermocouple_112_active){
|
|
2116
|
+
promises.cold_junction_thermocouple_112 = node.config_gateway.config_set_cold_junction_thermocouple_112(mac, parseInt(config.cold_junction_thermocouple_112));
|
|
2117
|
+
}
|
|
2118
|
+
if(config.sample_resolution_thermocouple_112_active){
|
|
2119
|
+
promises.sample_resolution_thermocouple_112 = node.config_gateway.config_set_sample_resolution_thermocouple_112(mac, parseInt(config.sample_resolution_thermocouple_112));
|
|
2120
|
+
}
|
|
2121
|
+
if(config.number_of_samples_thermocouple_112_active){
|
|
2122
|
+
promises.number_of_samples_thermocouple_112 = node.config_gateway.config_set_number_of_samples_thermocouple_112(mac, parseInt(config.number_of_samples_thermocouple_112));
|
|
2123
|
+
}
|
|
2124
|
+
if(config.measurement_type_thermocouple_112_active){
|
|
2125
|
+
promises.measurement_type_thermocouple_112 = node.config_gateway.config_set_measurement_type_thermocouple_112(mac, parseInt(config.measurement_type_thermocouple_112));
|
|
2126
|
+
}
|
|
2127
|
+
if(config.operation_mode_thermocouple_112_active){
|
|
2128
|
+
promises.operation_mode_thermocouple_112 = node.config_gateway.config_set_operation_mode_thermocouple_112(mac, parseInt(config.operation_mode_thermocouple_112));
|
|
2129
|
+
}
|
|
2130
|
+
if(config.enable_rpm_calculate_status_110_active){
|
|
2131
|
+
promises.enable_rpm_calculate_status_112 = node.config_gateway.config_set_enable_rpm_calculate_status_110(mac, parseInt(config.enable_rpm_calculate_status_110));
|
|
2097
2132
|
}
|
|
2098
2133
|
break;
|
|
2099
2134
|
case 114:
|
|
2100
|
-
if(config.
|
|
2101
|
-
promises.
|
|
2135
|
+
if(config.odr_p1_110_active){
|
|
2136
|
+
promises.odr_p1_114 = node.config_gateway.config_set_odr_p1_110(mac, parseInt(config.odr_p1_110));
|
|
2102
2137
|
}
|
|
2103
|
-
if(config.
|
|
2104
|
-
promises.
|
|
2138
|
+
if(config.sampling_duration_p1_110_active){
|
|
2139
|
+
promises.sampling_duration_p1_114 = node.config_gateway.config_set_sampling_duration_p1_110(mac, parseInt(config.sampling_duration_p1_110));
|
|
2105
2140
|
}
|
|
2106
2141
|
if(config.x_axis_101 || config.y_axis_101 || config.z_axis_101){
|
|
2107
2142
|
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);
|
|
@@ -2118,11 +2153,11 @@ module.exports = function(RED) {
|
|
|
2118
2153
|
if(config.filter_80_active){
|
|
2119
2154
|
promises.filter = node.config_gateway.config_set_filters_80(mac, parseInt(config.filter_80));
|
|
2120
2155
|
}
|
|
2121
|
-
if(config.
|
|
2122
|
-
promises.
|
|
2156
|
+
if(config.low_pass_filter_p1_110_active){
|
|
2157
|
+
promises.low_pass_filter_p1_114 = node.config_gateway.config_set_low_pass_filter_p1_110(mac, parseInt(config.low_pass_filter_p1_110));
|
|
2123
2158
|
}
|
|
2124
|
-
if(config.
|
|
2125
|
-
promises.
|
|
2159
|
+
if(config.high_pass_filter_p1_110_active){
|
|
2160
|
+
promises.high_pass_filter_p1_114 = node.config_gateway.config_set_high_pass_filter_p1_110(mac, parseInt(config.high_pass_filter_p1_110));
|
|
2126
2161
|
}
|
|
2127
2162
|
if(config.measurement_mode_80_active){
|
|
2128
2163
|
promises.measurement_mode = node.config_gateway.config_set_measurement_mode_80(mac, parseInt(config.measurement_mode_80));
|
|
@@ -2142,8 +2177,8 @@ module.exports = function(RED) {
|
|
|
2142
2177
|
if(config.led_velocity_threshold_84_active){
|
|
2143
2178
|
promises.led_velocity_threshold_84 = node.config_gateway.config_set_led_velocity_threshold_84(mac, parseInt(config.led_velocity_threshold_84));
|
|
2144
2179
|
}
|
|
2145
|
-
if(config.
|
|
2146
|
-
promises.
|
|
2180
|
+
if(config.motion_detect_threshold_p1_110_active){
|
|
2181
|
+
promises.motion_detect_threshold_p1_114 = node.config_gateway.config_set_motion_detect_threshold_p1_110(mac, parseInt(config.motion_detect_threshold_p1_110));
|
|
2147
2182
|
}
|
|
2148
2183
|
if(config.payload_length_80_active){
|
|
2149
2184
|
promises.payload_length_80 = node.config_gateway.config_set_payload_length_80(mac, parseInt(config.payload_length_80));
|
|
@@ -2169,6 +2204,9 @@ module.exports = function(RED) {
|
|
|
2169
2204
|
if(config.fly_interval_110_active){
|
|
2170
2205
|
promises.fly_interval_110 = node.config_gateway.config_set_fly_interval_110(mac, parseInt(config.fly_interval_110));
|
|
2171
2206
|
}
|
|
2207
|
+
if(config.enable_rpm_calculate_status_110_active){
|
|
2208
|
+
promises.enable_rpm_calculate_status_110 = node.config_gateway.config_set_enable_rpm_calculate_status_110(mac, parseInt(config.enable_rpm_calculate_status_110));
|
|
2209
|
+
}
|
|
2172
2210
|
break;
|
|
2173
2211
|
case 118:
|
|
2174
2212
|
if(config.pressure_sensor_fs_ch1_118_active){
|