Alphaw Member Licensed User Longtime User Nov 20, 2015 #1 Hello everyone, I am going to make an app about connect a thing (which is not mobile, just for gear or earphone) with bluetooth, I try the example of BLE2 (https://www.b4x.com/android/forum/threads/ble-2-bluetooth-low-energy.59937/) and other relative bluetooth post, however I cannot scan and connect other item. So, I would want to know that if I am going to connect an object item, which lib or class modules I need to use or what events I should include? Besides, I will also want to set that if there is disconnection, the phone will vibrate and ring-alarm, which lib should I use? Last question, as I read the ble2 example, the disconnection is done when we click the disconnect button, however, if the connection is suddenly loss contact by turning off opposite side, will the disconnect event automatical raised? Thank you.
Hello everyone, I am going to make an app about connect a thing (which is not mobile, just for gear or earphone) with bluetooth, I try the example of BLE2 (https://www.b4x.com/android/forum/threads/ble-2-bluetooth-low-energy.59937/) and other relative bluetooth post, however I cannot scan and connect other item. So, I would want to know that if I am going to connect an object item, which lib or class modules I need to use or what events I should include? Besides, I will also want to set that if there is disconnection, the phone will vibrate and ring-alarm, which lib should I use? Last question, as I read the ble2 example, the disconnection is done when we click the disconnect button, however, if the connection is suddenly loss contact by turning off opposite side, will the disconnect event automatical raised? Thank you.
Erel B4X founder Staff member Licensed User Longtime User Nov 22, 2015 #2 What is this "thing"? Is it a BLE peripheral? Upvote 0
Alphaw Member Licensed User Longtime User Nov 23, 2015 #3 Erel said: What is this "thing"? Is it a BLE peripheral? Click to expand... Yes, the thing is a ble peripheral. It maybe a chip, earphone or just anything with bluetooth. Upvote 0
Erel said: What is this "thing"? Is it a BLE peripheral? Click to expand... Yes, the thing is a ble peripheral. It maybe a chip, earphone or just anything with bluetooth.
Erel B4X founder Staff member Licensed User Longtime User Nov 23, 2015 #4 If it is a BLE peripheral device then you should use BLE2 library. Upvote 0