我的名字是离子的,我正在用构建我的第一个应用。我的问题是,当我对一个服务进行注册时,当调用该服务时,我不知道如何读取结果数据。我试过这段代码,但不起作用。
this.ble.startNotification(data.id,this.services[i].service,this.services[i].characteristic).subscribe( buffer => { let data = new Uint32Array(buffer); this,this.showError(data[0])},() =>this.showError("FAIL"