|
|
|
|
|
|
|
|
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(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) |
|
|
|
|
|
|
|
|
function connectDevice(t) { |
|
|
|
|
|
_WJService2.default.reallyConnect(function(e) { |
|
|
|
|
|
console.log("连接结果:", e.err_msg), (void 0 === t ? "undefined" : _typeof(t)) == TAG_FUNCTION && t(e) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|