Pārlūkot izejas kodu

2023年9月24日16:58:01

yxb
wq pirms 1 gada
vecāks
revīzija
757dca90df
1 mainītis faili ar 16 papildinājumiem un 3 dzēšanām
  1. 16
    3
      static/etc/WJBLE/WJBleAPI.js

+ 16
- 3
static/etc/WJBLE/WJBleAPI.js Parādīt failu

@@ -24,9 +24,22 @@ function _interopRequireDefault(e) {
var connectedDeviceId, TAG_FUNCTION = "function",
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)
})
}


Notiek ielāde…
Atcelt
Saglabāt