Lazarus

Programming => Operating Systems => Android => Topic started by: Ritt on March 25, 2019, 07:00:45 am

Title: LAMW: how to work with BLE device?
Post by: Ritt on March 25, 2019, 07:00:45 am
I would like to connect to BLE devices, I think it need to use BluetoothGatt class. Did I need to create a new component? any help?
Title: Re: LAMW: how to work with BLE device?
Post by: jmpessoa on March 25, 2019, 07:21:07 am

Yes!

I will Try  some solution!!!
Title: Re: LAMW: how to work with BLE device?
Post by: svd71 on July 09, 2020, 10:33:15 pm
Hi jmpessoa,

what about the topic? can LAMW work with BLE devices?
Title: Re: LAMW: how to work with BLE device?
Post by: jmpessoa on July 10, 2020, 03:13:46 am
Quote
can LAMW work with BLE devices?

I haven't been able to implement it yet ... BLE is a difficult task for me .... (I don't really understand the subject ...)

Edited:  Can you do some test? (I dont have a BLE device...)
Title: Re: LAMW: how to work with BLE device?
Post by: Ritt on February 26, 2021, 07:34:19 am
I can connected to the deviceļ¼Œbut it didn't enter the OnConnected Event
Title: Re: LAMW: how to work with BLE device?
Post by: jmpessoa on February 26, 2021, 05:50:18 pm

Hi, Ritt!

I will update it today!

Please, wait....

And yes, I need some help and tester!
Title: Re: LAMW: how to work with BLE device?
Post by: jmpessoa on February 27, 2021, 07:18:27 am

Done!

Update "AppBluetoothLowEnergyDemo1"   [alpha]

Title: Re: LAMW: how to work with BLE device?
Post by: Ritt on March 01, 2021, 04:47:32 am
Thanks a lot! It work!   I'll try some other test.
Title: Re: LAMW: how to work with BLE device?
Post by: Ritt on March 01, 2021, 10:26:52 am
the result of GetCharacteristicProperties is cpUnknown,  but I think it should be READ, WRITE and NOTIFY, just like the second picture
Title: Re: LAMW: how to work with BLE device?
Post by: DJswirl on April 06, 2023, 12:52:27 am
Did you find a solution to this as ive hit the same problem not getting the Characteristic List
Title: Re: LAMW: how to work with BLE device?
Post by: jmpessoa on April 09, 2023, 05:19:04 am

Hi!

I need help to fix it!

Title: Re: LAMW: how to work with BLE device?
Post by: DJswirl on April 09, 2023, 05:48:30 am
Hi

Thanks for your reply. I've spent most of the last week trying to get it to work and tonight I came to the conclusion there is a bug.
It finds "myserviceUUID" OK, and the correct UUIDs for the characteristics, but it will not get the properties of them. Strangely it will get the properties of the of the genetic characteristics.

Do you have any idea on a time scale, or should I look into another option? 

Thanks

Brian
Title: Re: LAMW: how to work with BLE device?
Post by: jmpessoa on April 10, 2023, 09:34:22 pm
Quote
Do you have any idea on a time scale...

Sorry.... No.

The "jBluetoothLowEnergy.java"   from  "androidmodulewizard\android_wizard\smartdesigner\java"

Need some fix....

I think I need some help... I have little specific BLE knowledge...
I don't work with BLE devices.... I don't have one to test...
 
TinyPortal © 2005-2018