ms-types 0.9.16 → 0.9.17
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/package.json
CHANGED
package/types/cloud.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare namespace cloud {
|
|
|
8
8
|
* @param url 完整 ws:// 或 wss:// 云控地址。
|
|
9
9
|
* @param deviceNo 可选设备编号,不传时沿用当前保存的设备编号。
|
|
10
10
|
* @returns URL 校验通过且连接请求已提交时返回 true。
|
|
11
|
-
* @description
|
|
11
|
+
* @description 只能在主脚本上下文调用;只影响当前运行期云控连接,不会写入设置页的持久化云控配置。
|
|
12
12
|
* @example
|
|
13
13
|
* const accepted = cloud.connect("wss://example.com/control", "device-001");
|
|
14
14
|
*/
|
|
@@ -6,7 +6,7 @@ declare namespace $云控 {
|
|
|
6
6
|
* @param 地址 完整 ws:// 或 wss:// 云控地址。
|
|
7
7
|
* @param 设备编号 可选设备编号,不传时沿用当前保存的设备编号。
|
|
8
8
|
* @returns URL 校验通过且连接请求已提交时返回 true。
|
|
9
|
-
* @description
|
|
9
|
+
* @description 只能在主脚本上下文调用;只影响当前运行期云控连接,不会写入设置页的持久化云控配置。
|
|
10
10
|
* @example
|
|
11
11
|
* const 已提交 = $云控.连接("wss://example.com/control", "device-001");
|
|
12
12
|
*/
|