瀏覽代碼

2023年9月24日16:58:01

yxb
wq 1 年之前
父節點
當前提交
757dca90df
共有 1 個文件被更改,包括 16 次插入3 次删除
  1. 16
    3
      static/etc/WJBLE/WJBleAPI.js

+ 16
- 3
static/etc/WJBLE/WJBleAPI.js 查看文件

var connectedDeviceId, TAG_FUNCTION = "function", var connectedDeviceId, TAG_FUNCTION = "function",
SDK_VERSION = "WJ_BLESDK_ZFB_SD_V1.0.1_20230112"; SDK_VERSION = "WJ_BLESDK_ZFB_SD_V1.0.1_20230112";


function connectDevice(t) {
_WJService2.default.reallyConnect(function(e) {
console.log("连接结果:", e.err_msg), (void 0 === t ? "undefined" : _typeof(t)) == TAG_FUNCTION && t(e)
// function connectDevice(t) {
// _WJService2.default.reallyConnect(function(e) {
// console.log("连接结果:", e.err_msg), (void 0 === t ? "undefined" : _typeof(t)) == TAG_FUNCTION && t(e)
// })
// }

function connectDevice(e, t, a) {
var i = {};
_wjService2.default.reallyConnect(e, function(e) {
i.data = [], i.code = e.serviceCode, i.msg = e.serviceInfo, _wjUtils2.default.showLog("连接结果:", i.msg), (
void 0 === t ? "undefined" : _typeof(t)) == TAG_FUNCTION && t(i)
}, function(e) {
(i = {
data: []
}).code = e.serviceCode, i.msg = e.serviceInfo, _wjUtils2.default.showLog("连接状态:", i.msg), (void 0 ===
a ? "undefined" : _typeof(a)) == TAG_FUNCTION && a(i)
}) })
} }



Loading…
取消
儲存