B4i Library BLE (Bluetooth Low Energy) library

ilan

Expert
Licensed User
Longtime User


sorry for my ignorance but what means "support writting"? is it now possible to send strings between 2 connected devices??
 

andreahaku

Member
Licensed User
Longtime User
sorry for my ignorance but what means "support writting"? is it now possible to send strings between 2 connected devices??

The previous version of the BLE library couldn't write but only read. Now it should allow writing as well as reading.
 

ilan

Expert
Licensed User
Longtime User
It is not possible to use this library to communicate between two devices. You can now write and read from peripheral BLE devices.

so what means write to peripheral BLE devices? i can write to my bluethoot earphones??
 

mdehrnsb

Member
Licensed User
Longtime User
Erel,

I am a newbie to B4A. I have tried your BLE V1.0 library snippet code but found that I cannot get it to operate at all. It does not find my BLE module and just exits after the scan time. Is there something that I am missing. Does it rely on the standard Bluetooth administrator? I have tried the Bluetooth.zip example and it does find the module when doing a discovery. Also, I cannot find any links for the new BLE V1.10 library to download. I see that you have a B4i full example. Can you provide a full B4a example similar to a BLE scanner? Thanks.
 

MTailor

Member
Licensed User
Longtime User

To communicate via SPP you need an authentication chip from Apple in your peripheral and use the iAP protocol.
If you just want to send streaming data, it is possible to use a virtual serial port service in many BLE modules.
For example try the module www.lairdtech.com/bl600
 

MTailor

Member
Licensed User
Longtime User
In other words I wouldn't be able to write an app to control any light switches etc... through a bluetooth module connected to a microcontroller????

Thanks,
Walter

If you use BLE rather than classic BT, then you will be able to
 

MTailor

Member
Licensed User
Longtime User
Currently it is not possible with this library.

Even when all of the BLE features will be implemented it will still not be so useful for communication between devices unless you need to send very small messages.

Another option is to use virtual serial services in BLE devices. That will allow you to send and receive data as a stream.
 

Ph1lJ

Member
Licensed User
Longtime User
Does anyone have an example of how to use the WriteData feature, I don't understand what is required ?
 

Ph1lJ

Member
Licensed User
Longtime User
Thanks a lot Erel!
I'll test it this week and let you know how it works.
What about having write supported on BLE library for B4A?
Hi andreahaku
Did you get this to work using the Write data function, I'm not at all sure what is required - can you help ?
 

Ph1lJ

Member
Licensed User
Longtime User
Cookies are required to use this site. You must accept them to continue using the site. Learn more…