@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.
@@ -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
- console.log('config_set_fly_interval_108');
1355
- var packet = [247, 56, 0, 0, 0, 0, value];
1356
- console.log(packet);
1357
- return this.config_send(sensor_mac, packet);
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];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ncd-io/node-red-enterprise-sensors",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {