@ncd-io/node-red-enterprise-sensors 1.2.2 → 1.2.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 +7 -5
- package/package.json +1 -1
package/lib/WirelessGateway.js
CHANGED
|
@@ -1351,11 +1351,13 @@ module.exports = class WirelessSensor{
|
|
|
1351
1351
|
return this.config_send(sensor_mac, packet);
|
|
1352
1352
|
}
|
|
1353
1353
|
config_set_fly_interval_108(sensor_mac, value){
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1354
|
+
console.log('config_set_fly_interval_108');
|
|
1355
|
+
var packet = [247, 56, 0, 0, 0];
|
|
1356
|
+
let val = int2Bytes((value), 2);
|
|
1357
|
+
packet.push(...val);
|
|
1358
|
+
console.log(packet);
|
|
1359
|
+
return this.config_send(sensor_mac, packet);
|
|
1360
|
+
}
|
|
1359
1361
|
config_set_sample_rate_108(sensor_mac, value){
|
|
1360
1362
|
console.log('config_set_sample_rate_108');
|
|
1361
1363
|
var packet = [244, 57, 0, 0, 0, value];
|