Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Himai Minh

How to read data from BLE device

Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.....
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic