i'm trying to use Bluez (python) on a raspberry pi to receive data with bluetooth from a ionic2 app. I'm using the built in Bluetooth from "native ionic" which is the bluetoothSerial
framework from Cordova
I can't receive any data on the rasp. I'm using list()
to check if the device is connected to the rasp (it return true).
I'm using write to send a "hello world" message.
The Ionic2 script:
BluetoothSerial.connect("B8:27:EB:F7:3B:B5");
BluetoothSerial.write("hello world").then(this.success, this.failure);
After the write, my callback succes is called which means that the data was correctly sent. I was wondering on which bluetooth port the ionic2 app send the data. Bluez need a specific port to listen to.