@ray-js/lock-sdk 1.1.3 → 1.1.4-beta.2
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/state.js +5 -1
- 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
|
|
301
|
+
if (deviceId !== config.devInfo.devId) {
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
updateOnlineType();
|
|
305
|
+
if (status === "CONNECTED") {
|
|
302
306
|
syncRemoteSerectKey();
|
|
303
307
|
autoSyncTemp();
|
|
304
308
|
syncT0();
|