【发布时间】:2020-01-17 14:12:31
【问题描述】:
我很伤心,因为我尝试了很多方法来让我的应用在 android 上运行良好。 我将 Ionic 与 Vue.js 一起使用。代码在 IOS 上运行良好,但返回('无法在 Android 上连接到此设备')
this.bluetoothSerial.connect("XX:XX:XX:XX:XX:99").subscribe(
() => {
// this.test++
this.bluetoothSerial.subscribeRawData().subscribe(
data => this.dataWatt = decoder.decode(data),
error => alert(error + '2')
)
},
(error) => {
alert(error)
}
)
我不使用 bluetoothSerial 扫描除 BLE 之外的所有设备。我不知道在做什么...
【问题讨论】:
标签: cordova ionic-framework bluetooth android-bluetooth