@ray-js/lock-sdk 1.1.3-beta.9 → 1.1.4-beta.1

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.
Files changed (2) hide show
  1. package/lib/state.js +5 -1
  2. package/package.json +1 -1
package/lib/state.js CHANGED
@@ -298,7 +298,11 @@ const handleMqttMessage = ({ deviceId, messageData, protocol }) => {
298
298
  };
299
299
  let hasEvent = false;
300
300
  const handleBleChange = ({ deviceId, status }) => {
301
- if (deviceId === config.devInfo.devId && status === "CONNECTED") {
301
+ if (deviceId !== config.devInfo.devId) {
302
+ return;
303
+ }
304
+ updateOnlineType();
305
+ if (status === "CONNECTED") {
302
306
  syncRemoteSerectKey();
303
307
  autoSyncTemp();
304
308
  syncT0();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/lock-sdk",
3
- "version": "1.1.3-beta.9",
3
+ "version": "1.1.4-beta.1",
4
4
  "files": [
5
5
  "lib",
6
6
  "LICENSE.md"