• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

How to read data from BLE device

Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, I have been struggling for some time now with this BLE. I am working on an Appcelerator module that can enable communication (read/write data) from some devices with an Android tablet. I am able to scan, discover devices, connect to it and discover it's services. What I am unable to do is to read data. As you can see on the below code, the contents on method readData() ALWAYS return false. (writeDescriptor, readCharacteristic, readDescriptor). No matter what, this always returns false. The callback is never called, and I am completely stuck. What on earth am I doing wrong? How can I set those stuff on readData() to be true, and what to do after that? Thank you all in advance!

Now, my callback methods:

And here is the log....

Please ranch people, help me, I am 3 weeks now banging my head over the wall for this.....
If you are using a wood chipper, you are doing it wrong. Even on this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!