lebai_sdk 0.3.3 → 0.3.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.
- package/lebai_sdk.d.ts +1 -0
- package/lebai_sdk_bg.js +31 -21
- package/lebai_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/lebai_sdk.d.ts
CHANGED
@@ -73,6 +73,7 @@ export class Robot {
|
|
73
73
|
set_serial_parity(device: string, parity: any): Promise<void>;
|
74
74
|
write_serial(device: string, data: any): Promise<void>;
|
75
75
|
read_serial(device: string, len: number): Promise<any>;
|
76
|
+
clear_serial(device: string): Promise<void>;
|
76
77
|
disconnect_modbus(device: string): Promise<void>;
|
77
78
|
set_modbus_timeout(device: string, timeout: number): Promise<void>;
|
78
79
|
set_modbus_retry(device: string, retry: number): Promise<void>;
|
package/lebai_sdk_bg.js
CHANGED
@@ -294,24 +294,24 @@ export function version() {
|
|
294
294
|
}
|
295
295
|
}
|
296
296
|
|
297
|
-
function __wbg_adapter_52(arg0, arg1) {
|
298
|
-
wasm.
|
297
|
+
function __wbg_adapter_52(arg0, arg1, arg2) {
|
298
|
+
wasm.closure598_externref_shim(arg0, arg1, arg2);
|
299
299
|
}
|
300
300
|
|
301
|
-
function
|
302
|
-
wasm.
|
301
|
+
function __wbg_adapter_59(arg0, arg1) {
|
302
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heafb30a31e014579(arg0, arg1);
|
303
303
|
}
|
304
304
|
|
305
305
|
function __wbg_adapter_62(arg0, arg1, arg2) {
|
306
|
-
wasm.
|
306
|
+
wasm.closure667_externref_shim(arg0, arg1, arg2);
|
307
307
|
}
|
308
308
|
|
309
309
|
function __wbg_adapter_65(arg0, arg1) {
|
310
|
-
wasm.
|
310
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0d3bb56598e8a930(arg0, arg1);
|
311
311
|
}
|
312
312
|
|
313
|
-
function
|
314
|
-
wasm.
|
313
|
+
function __wbg_adapter_282(arg0, arg1, arg2, arg3) {
|
314
|
+
wasm.closure745_externref_shim(arg0, arg1, arg2, arg3);
|
315
315
|
}
|
316
316
|
|
317
317
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
@@ -975,6 +975,16 @@ export class Robot {
|
|
975
975
|
const ret = wasm.robot_read_serial(this.__wbg_ptr, ptr0, len0, len);
|
976
976
|
return ret;
|
977
977
|
}
|
978
|
+
/**
|
979
|
+
* @param {string} device
|
980
|
+
* @returns {Promise<void>}
|
981
|
+
*/
|
982
|
+
clear_serial(device) {
|
983
|
+
const ptr0 = passStringToWasm0(device, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
984
|
+
const len0 = WASM_VECTOR_LEN;
|
985
|
+
const ret = wasm.robot_clear_serial(this.__wbg_ptr, ptr0, len0);
|
986
|
+
return ret;
|
987
|
+
}
|
978
988
|
/**
|
979
989
|
* @param {string} device
|
980
990
|
* @returns {Promise<void>}
|
@@ -1611,7 +1621,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
1611
1621
|
const a = state0.a;
|
1612
1622
|
state0.a = 0;
|
1613
1623
|
try {
|
1614
|
-
return
|
1624
|
+
return __wbg_adapter_282(a, state0.b, arg0, arg1);
|
1615
1625
|
} finally {
|
1616
1626
|
state0.a = a;
|
1617
1627
|
}
|
@@ -1823,33 +1833,33 @@ export function __wbindgen_cb_drop(arg0) {
|
|
1823
1833
|
return ret;
|
1824
1834
|
};
|
1825
1835
|
|
1826
|
-
export function
|
1827
|
-
const ret = makeMutClosure(arg0, arg1,
|
1836
|
+
export function __wbindgen_closure_wrapper1652(arg0, arg1, arg2) {
|
1837
|
+
const ret = makeMutClosure(arg0, arg1, 599, __wbg_adapter_52);
|
1828
1838
|
return ret;
|
1829
1839
|
};
|
1830
1840
|
|
1831
|
-
export function
|
1832
|
-
const ret = makeMutClosure(arg0, arg1,
|
1841
|
+
export function __wbindgen_closure_wrapper1654(arg0, arg1, arg2) {
|
1842
|
+
const ret = makeMutClosure(arg0, arg1, 599, __wbg_adapter_52);
|
1833
1843
|
return ret;
|
1834
1844
|
};
|
1835
1845
|
|
1836
|
-
export function
|
1837
|
-
const ret = makeMutClosure(arg0, arg1,
|
1846
|
+
export function __wbindgen_closure_wrapper1656(arg0, arg1, arg2) {
|
1847
|
+
const ret = makeMutClosure(arg0, arg1, 599, __wbg_adapter_52);
|
1838
1848
|
return ret;
|
1839
1849
|
};
|
1840
1850
|
|
1841
|
-
export function
|
1842
|
-
const ret = makeMutClosure(arg0, arg1,
|
1851
|
+
export function __wbindgen_closure_wrapper1658(arg0, arg1, arg2) {
|
1852
|
+
const ret = makeMutClosure(arg0, arg1, 599, __wbg_adapter_59);
|
1843
1853
|
return ret;
|
1844
1854
|
};
|
1845
1855
|
|
1846
|
-
export function
|
1847
|
-
const ret = makeMutClosure(arg0, arg1,
|
1856
|
+
export function __wbindgen_closure_wrapper2291(arg0, arg1, arg2) {
|
1857
|
+
const ret = makeMutClosure(arg0, arg1, 668, __wbg_adapter_62);
|
1848
1858
|
return ret;
|
1849
1859
|
};
|
1850
1860
|
|
1851
|
-
export function
|
1852
|
-
const ret = makeMutClosure(arg0, arg1,
|
1861
|
+
export function __wbindgen_closure_wrapper2317(arg0, arg1, arg2) {
|
1862
|
+
const ret = makeMutClosure(arg0, arg1, 680, __wbg_adapter_65);
|
1853
1863
|
return ret;
|
1854
1864
|
};
|
1855
1865
|
|
package/lebai_sdk_bg.wasm
CHANGED
Binary file
|