A Almog Active Member Licensed User Sep 28, 2018 #1 Hello, I used Erel's example in Android Bluetooth / BluetoothAdmin Tutorial post: https://www.b4x.com/android/forum/threads/android-bluetooth-bluetoothadmin-tutorial.14768/ Does anybody know if there is a way (in Erel's chat example) to search only for devices that have the same app (Erel's chat example) installed in it, and not all devices nearby that have bluetooth activated. Thanks in advance.
Hello, I used Erel's example in Android Bluetooth / BluetoothAdmin Tutorial post: https://www.b4x.com/android/forum/threads/android-bluetooth-bluetoothadmin-tutorial.14768/ Does anybody know if there is a way (in Erel's chat example) to search only for devices that have the same app (Erel's chat example) installed in it, and not all devices nearby that have bluetooth activated. Thanks in advance.
Erel B4X founder Staff member Licensed User Longtime User Sep 30, 2018 #2 All nearby discoverable BT devices will be discovered. If there aren't too many devices then you can try to connect to all of them. You can use a unique UDID so it will not connect to other apps that are listening for connections on the default UDID. Upvote 0
All nearby discoverable BT devices will be discovered. If there aren't too many devices then you can try to connect to all of them. You can use a unique UDID so it will not connect to other apps that are listening for connections on the default UDID.
A Almog Active Member Licensed User Sep 30, 2018 #3 Erel said: You can use a unique UDID so it will not connect to other apps that are listening for connections on the default UDID. Click to expand... Thank you, You can send please an example of how set a unique UDID in the BluetoothManager class? Thanks in advance. Upvote 0
Erel said: You can use a unique UDID so it will not connect to other apps that are listening for connections on the default UDID. Click to expand... Thank you, You can send please an example of how set a unique UDID in the BluetoothManager class? Thanks in advance.
Erel B4X founder Staff member Licensed User Longtime User Sep 30, 2018 #4 Call Serial.Listen2("b4a", "abcd1101-0000-1000-8000-00805F9B34FB") instead of Serial.Listen. Call Serial.Connect2(Mac, "abcd1101-0000-1000-8000-00805F9B34FB") instead of Serial.Connect. Upvote 0
Call Serial.Listen2("b4a", "abcd1101-0000-1000-8000-00805F9B34FB") instead of Serial.Listen. Call Serial.Connect2(Mac, "abcd1101-0000-1000-8000-00805F9B34FB") instead of Serial.Connect.
A Almog Active Member Licensed User Sep 30, 2018 #5 Erel said: Call Serial.Listen2("b4a", "abcd1101-0000-1000-8000-00805F9B34FB") instead of Serial.Listen. Call Serial.Connect2(Mac, "abcd1101-0000-1000-8000-00805F9B34FB") instead of Serial.Connect. Click to expand... Thank you very much . Is abcd1101-0000-1000-8000-00805F9B34FB is changable? and is "b4a" is unchangeable? Upvote 0
Erel said: Call Serial.Listen2("b4a", "abcd1101-0000-1000-8000-00805F9B34FB") instead of Serial.Listen. Call Serial.Connect2(Mac, "abcd1101-0000-1000-8000-00805F9B34FB") instead of Serial.Connect. Click to expand... Thank you very much . Is abcd1101-0000-1000-8000-00805F9B34FB is changable? and is "b4a" is unchangeable?
Erel B4X founder Staff member Licensed User Longtime User Sep 30, 2018 #6 Both can be changed. Upvote 0
A Almog Active Member Licensed User Sep 30, 2018 #7 Erel said: Both can be changed. Click to expand... OK, thank you Upvote 0