F fragger86 Member Licensed User Aug 7, 2016 #1 Hi to everybody I'm interested in writing down a program in which two or more android phone could connect through BLE; I found this thread: https://www.b4x.com/android/forum/threads/ble-chat-connecting-android-and-ios.66543/#content Among the attached three files, I have understood BleCentral_B4A.zip However, since I don't know the B4i sintax, the other files are obscure matter. Could someone describe the code for the "peripheral" for android? Is it nearly the same as the "central"?
Hi to everybody I'm interested in writing down a program in which two or more android phone could connect through BLE; I found this thread: https://www.b4x.com/android/forum/threads/ble-chat-connecting-android-and-ios.66543/#content Among the attached three files, I have understood BleCentral_B4A.zip However, since I don't know the B4i sintax, the other files are obscure matter. Could someone describe the code for the "peripheral" for android? Is it nearly the same as the "central"?
Erel B4X founder Staff member Licensed User Longtime User Aug 8, 2016 #2 Most Android devices do not support peripheral mode. Currently the B4A library doesn't support it. You can use classic Bluetooth instead. Upvote 0
Most Android devices do not support peripheral mode. Currently the B4A library doesn't support it. You can use classic Bluetooth instead.
F fragger86 Member Licensed User Aug 8, 2016 #3 In fact, I am interested in connecting 2 or more devices...is it possbile using classic bluetooth? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 8, 2016 #4 It is possible but it is not so simple and will probably won't be reliable. Can't you use wifi instead? Maybe with a hotspot. It will allow you to use MQTT. https://www.b4x.com/android/forum/threads/61568/#content Upvote 0
It is possible but it is not so simple and will probably won't be reliable. Can't you use wifi instead? Maybe with a hotspot. It will allow you to use MQTT. https://www.b4x.com/android/forum/threads/61568/#content
F fragger86 Member Licensed User Aug 8, 2016 #5 It could be a good solution! Start reading...thanks Erel Upvote 0