Recent

Author Topic: LAMW: how to work with BLE device?  (Read 3869 times)

Ritt

  • Newbie
  • Posts: 6
LAMW: how to work with BLE device?
« 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?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAMW: how to work with BLE device?
« Reply #1 on: March 25, 2019, 07:21:07 am »

Yes!

I will Try  some solution!!!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

svd71

  • New Member
  • *
  • Posts: 29
Re: LAMW: how to work with BLE device?
« Reply #2 on: July 09, 2020, 10:33:15 pm »
Hi jmpessoa,

what about the topic? can LAMW work with BLE devices?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAMW: how to work with BLE device?
« Reply #3 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...)
« Last Edit: July 10, 2020, 03:53:07 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Ritt

  • Newbie
  • Posts: 6
Re: LAMW: how to work with BLE device?
« Reply #4 on: February 26, 2021, 07:34:19 am »
I can connected to the device,but it didn't enter the OnConnected Event

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAMW: how to work with BLE device?
« Reply #5 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!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAMW: how to work with BLE device?
« Reply #6 on: February 27, 2021, 07:18:27 am »

Done!

Update "AppBluetoothLowEnergyDemo1"   [alpha]

Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Ritt

  • Newbie
  • Posts: 6
Re: LAMW: how to work with BLE device?
« Reply #7 on: March 01, 2021, 04:47:32 am »
Thanks a lot! It work!   I'll try some other test.

Ritt

  • Newbie
  • Posts: 6
Re: LAMW: how to work with BLE device?
« Reply #8 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

DJswirl

  • Newbie
  • Posts: 2
Re: LAMW: how to work with BLE device?
« Reply #9 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

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAMW: how to work with BLE device?
« Reply #10 on: April 09, 2023, 05:19:04 am »

Hi!

I need help to fix it!

Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

DJswirl

  • Newbie
  • Posts: 2
Re: LAMW: how to work with BLE device?
« Reply #11 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

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAMW: how to work with BLE device?
« Reply #12 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...
 
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018