BluetoothSerial ionic2-can';无法连接到设备

BluetoothSerial ionic2-can';无法连接到设备,bluetooth,raspberry-pi,ionic2,bluez,Bluetooth,Raspberry Pi,Ionic2,Bluez,我试图在raspberry pi上使用Bluez(python)从ionic2应用程序通过蓝牙接收数据。我正在使用“native ionic”的内置蓝牙,这是Cordova的bluetoothSerial框架 我无法收到锉刀上的任何数据。我正在使用list()检查设备是否连接到rasp(返回true) 我正在使用write发送“hello world”消息 Ionic2脚本: BluetoothSerial.connect("B8:27:EB:F7:3B:B5"); Bluetoo

我试图在raspberry pi上使用Bluez(python)从ionic2应用程序通过蓝牙接收数据。我正在使用“native ionic”的内置蓝牙,这是Cordova的
bluetoothSerial
框架

我无法收到锉刀上的任何数据。我正在使用
list()
检查设备是否连接到rasp(返回true)

我正在使用write发送“hello world”消息

Ionic2脚本:

   BluetoothSerial.connect("B8:27:EB:F7:3B:B5");
    BluetoothSerial.write("hello world").then(this.success, this.failure);
写入之后,将调用我的回调成功,这意味着数据已正确发送。
我想知道ionic2应用程序在哪个蓝牙端口发送数据。Bluez需要一个特定的端口来侦听。

您的意思是无法连接还是无法接收数据?我似乎无法连接。我正在使用list()检查设备是否连接到rasp(返回true)。你这是什么意思?它返回true,但您说在调试模式下无法连接,当我使用list时,它是连接的,但当我使用'isConnected()'时,它不是。这就是奇怪的事情。这是你正在使用的插件吗?提供更多信息,以便人们能够更好地帮助您