node-switchbot 1.6.0-beta.6 → 1.6.0-beta.7

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.
@@ -388,10 +388,10 @@ class SwitchbotAdvertising {
388
388
  let byte9 = buf.readUInt8(9);
389
389
  let byte10 = buf.readUInt8(10);//bulb mode
390
390
 
391
- let r = byte3;
392
- let g = byte4;
393
- let b = byte5;
394
- let sequence_number = byte6;
391
+ let red = byte3;
392
+ let green = byte4;
393
+ let blue = byte5;
394
+ let color_Temperature = byte6;
395
395
  let state = byte7 & 0b01111111 ? true : false;
396
396
  let brightness = byte7 & 0b01111111;
397
397
  let delay = byte8 & 0b10000000;
@@ -403,11 +403,11 @@ class SwitchbotAdvertising {
403
403
  let data = {
404
404
  model: "u",
405
405
  modelName: "WoBulb",
406
- sequence_number: sequence_number,
406
+ color_Temperature: color_Temperature,
407
407
  state: state,
408
- r: r,
409
- g: g,
410
- b: b,
408
+ red: red,
409
+ green: green,
410
+ blue: blue,
411
411
  brightness: brightness,
412
412
  delay: delay,
413
413
  preset: preset,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-switchbot",
3
- "version": "1.6.0-beta.6",
3
+ "version": "1.6.0-beta.7",
4
4
  "description": "The node-switchbot is a Node.js module which allows you to control your Switchbot Devices through Bluetooth (BLE).",
5
5
  "main": "./lib/switchbot.js",
6
6
  "files": [