@tuya-miniapp/ark-extension-virtual-device 1.6.0-beta-13 → 1.6.0-beta-14
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/dist/worker/index.js +23 -1
- package/package.json +1 -1
package/dist/worker/index.js
CHANGED
|
@@ -213424,7 +213424,7 @@ var require_package = __commonJS({
|
|
|
213424
213424
|
"package.json"(exports, module2) {
|
|
213425
213425
|
module2.exports = {
|
|
213426
213426
|
name: "@tuya-miniapp/ark-extension-virtual-device",
|
|
213427
|
-
version: "1.6.0-beta-
|
|
213427
|
+
version: "1.6.0-beta-13",
|
|
213428
213428
|
license: "MIT",
|
|
213429
213429
|
files: [
|
|
213430
213430
|
"manifest.json",
|
|
@@ -272072,6 +272072,23 @@ async function registerMQTTDeviceListener(params) {
|
|
|
272072
272072
|
};
|
|
272073
272073
|
}
|
|
272074
272074
|
}
|
|
272075
|
+
async function unregisterMQTTDeviceListener(params) {
|
|
272076
|
+
const { deviceId } = params;
|
|
272077
|
+
initMqttClient_default.removeDeviceListener(deviceId);
|
|
272078
|
+
try {
|
|
272079
|
+
return {
|
|
272080
|
+
data: {},
|
|
272081
|
+
errorCode: 0,
|
|
272082
|
+
errorMsg: import_TYUniCode2.TYUniPluginError.SUCCESS.des
|
|
272083
|
+
};
|
|
272084
|
+
} catch (error) {
|
|
272085
|
+
return {
|
|
272086
|
+
data: false,
|
|
272087
|
+
errorCode: import_TYUniCode2.TYUniPluginError.DEVICEKIT_GW_ID_INVALID.code,
|
|
272088
|
+
errorMsg: import_TYUniCode2.TYUniPluginError.DEVICEKIT_GW_ID_INVALID.des
|
|
272089
|
+
};
|
|
272090
|
+
}
|
|
272091
|
+
}
|
|
272075
272092
|
async function registerTopicListListener(params) {
|
|
272076
272093
|
const { topicList } = params;
|
|
272077
272094
|
await initMqttClient_default.registerTopicListListener(topicList);
|
|
@@ -272307,6 +272324,11 @@ ark.miniapp.addPluginMethod(
|
|
|
272307
272324
|
"sendMqttMessage",
|
|
272308
272325
|
sendMqttMessage
|
|
272309
272326
|
);
|
|
272327
|
+
ark.miniapp.addPluginMethod(
|
|
272328
|
+
"TUNIDeviceControlManager",
|
|
272329
|
+
"unregisterMQTTDeviceListener",
|
|
272330
|
+
unregisterMQTTDeviceListener
|
|
272331
|
+
);
|
|
272310
272332
|
|
|
272311
272333
|
// worker/api/TYUniLocalizationManager.ts
|
|
272312
272334
|
var import_lodash6 = __toESM(require_lodash());
|