Android Question Connect to BLE when no pair is needed

Shay

Well-Known Member
Licensed User
Longtime User
Hi
I have BLE device that does not require any pairing
I need to connect to it and read/write data to it
with BLE scanner (app store) I can see it and connect and read/write
with BLE2 I cannot do it

How can I do it?
Thanks
 

teddybear

Well-Known Member
Licensed User
Did you discover other blue devices using the example?
Try to scan it with your BLE device ServiceID, see if it can be discovered?
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
Did you discover other blue devices using the example?
Try to scan it with your BLE device ServiceID, see if it can be discovered?
Yes, other devices that are paired can be scanned, this device does not requires pairing, and it cannot be discovered
 
Upvote 0

teddybear

Well-Known Member
Licensed User
Yes, other devices that are paired can be scanned, this device does not requires pairing, and it cannot be discovered
Try to allow duplicates
B4X:
manager.Scan2(Null, True)
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Check this:
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
Check this:
Teddybear solution seems to work, but anyway - how do I use this jar and xml? I wish to try it as well, do you have complete project while using it?
 
Upvote 0

teddybear

Well-Known Member
Licensed User
Teddybear solution seems to work, but anyway - how do I use this jar and xml? I wish to try it as well, do you have complete project while using it?
They are library files, put them to additinal folder of B4a.
 
Upvote 0
Top