"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_wjUtils=require("./wjUtils.js"),_wjUtils2=_interopRequireDefault(_wjUtils),_wjDataDecode=require("./wjDataDecode"),_wjDataDecode2=_interopRequireDefault(_wjDataDecode);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var reality_indicateServiceId,reality_notifyServiceId,reality_writeServiceId,reality_services,ListenFlag=void 0,DataListenerCallBack=void 0,connectedDeviceId=void 0,timeID=void 0,TAG_FUNCTION="function",sendCallback=void 0,TimerID=null,handshake=!1,services="0000FEE7-0000-1000-8000-00805F9B34FB",retdata="";function reallyScanConnect(c){var a={},l=(_wjUtils2.default.showLog("/***********Runing :: Do reallyConnect() begin *************/"),[]);wx.openBluetoothAdapter({success:function(e){wx.startBluetoothDevicesDiscovery({services:[],success:function(e){wx.onBluetoothDeviceFound(function(e){for(var i=0;i=a[r].length&&(r++,s=0);console.log("currentsegment",s,"currentPackage",r,a);r=40*(s+1)?a[r].substring(40*s,40*(s+1)):a[r].substring(40*s,a[r].length));console.log("currentsegment",s,"currentPackage",r,a);if(""==e)_wjUtils2.default.showLog("数据发送完毕!"),"fe0100164e2300030a06080012024f4b100018002000"==a[l.serviceCode=0]&&(void 0===sendCallback?"undefined":_typeof(sendCallback))==TAG_FUNCTION&&sendCallback(l);else{for(var i=_wjUtils2.default.hexStr2byteArray(e),o=new ArrayBuffer(i.byteLength),n=new DataView(o),c=0;c