node-switchbot 1.4.2-beta.3 → 1.4.2-beta.4
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.
|
@@ -9,14 +9,14 @@ class SwitchbotDeviceWoPlugMini extends SwitchbotDevice {
|
|
|
9
9
|
* @returns {Promise<boolean>} resolves with a boolean that tells whether the plug in ON(true) or OFF(false)
|
|
10
10
|
*/
|
|
11
11
|
readState() {
|
|
12
|
-
return this._operateBot([0x57, 0x0f,
|
|
12
|
+
return this._operateBot([0x57, 0x0f, 0x48, 0x01]);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @private
|
|
17
17
|
*/
|
|
18
18
|
_setState(reqByteArray) {
|
|
19
|
-
const base = [0x57, 0x0f,
|
|
19
|
+
const base = [0x57, 0x0f, 0x47, 0x01];
|
|
20
20
|
return this._operateBot([].concat(base, reqByteArray));
|
|
21
21
|
}
|
|
22
22
|
|
package/package.json
CHANGED